WatchdogMode#
API documentation for tradeexecutor.cli.watchdog.WatchdogMode Python class in Trading Strategy framework.
- class WatchdogMode[source]#
Bases:
EnumHow does the watchdog communicate with its tasks.
- __init__(*args, **kwds)#
Attributes
Thread based.
Process based.
- thread_based = 'thread_based'#
Thread based.
The application does not need to communicate with child processe.
- process_based = 'process_based'#
Process based.
The application has child processes and needs to set up multiprocess communicatons.
DictProxyis used to communicate task liveness and it works across process boundaries.For the caveats see, https://stackoverflow.com/a/75385991/315168 as this may cause zombie processes.