create_watchdog_registry#

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

create_watchdog_registry(mode)[source]#

Create new multiprocess co-ordation structure.

  • Call in the master process

  • Registry must be passed to threads/processes setting up their own loops

Returns:

Multiprocess communication safe dict

Parameters:

mode (WatchdogMode) –

Return type:

multiprocessing.managers.DictProxy | dict