API documentation for tradeexecutor.cli.watchdog.WatchdogMode Python class in Trading Strategy framework.
- class WatchdogMode#
How does the watchdog communicate with its tasks.
- thread_based = 'thread_based'#
The application does not need to communicate with child processe.
- 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.