start_background_watchdog#

API documentation for tradeexecutor.cli.watchdog.start_background_watchdog Python function.

start_background_watchdog(watchdog_registry)[source]#

Call in the main thread.

  • Starts the watchdog background thread that will watch over all workers in all processes

  • Kill the main process if any of the workers seem to be hung

Parameters:

watchdog_registry (multiprocessing.managers.DictProxy | dict) –