WatchdogMode#
tradeexecutor.cli.watchdog.WatchdogMode Python class in Trading Strategy framework.
- class WatchdogMode[source]#
Bases:
Enum
How does the watchdog communicate with its tasks.
- __init__()#
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.
DictProxy
is 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.