class documentation

Undocumented

Method __init__ Undocumented
Method new_event Create a threading.Event that can be used across processes.
Async Method register_heartbeater Register a heartbeat function.
Async Method unregister_heartbeater Unregisters a previously registered heartbeater for the task token. This should also flush any pending heartbeats.
Method _heartbeat_processor Undocumented
Instance Variable _heartbeat_completions Undocumented
Instance Variable _heartbeat_queue Undocumented
Instance Variable _heartbeats Undocumented
Instance Variable _mgr Undocumented
Instance Variable _queue_poller_executor Undocumented

Inherited from SharedStateManager:

Static Method create_from_multiprocessing Create a shared state manager from a multiprocessing manager.

Undocumented

def new_event(self) -> threading.Event: (source)

Create a threading.Event that can be used across processes.

async def register_heartbeater(self, task_token: bytes, heartbeat: Callable[..., None]) -> SharedHeartbeatSender: (source)

Register a heartbeat function.

Parameters
task_token:bytesUnique task token for the heartbeater.
heartbeat:Callable[..., None]Function that should be called when the resulting sender is sent a heartbeat.
Returns
SharedHeartbeatSenderA sender that can be pickled for use in another process.
async def unregister_heartbeater(self, task_token: bytes): (source)

Unregisters a previously registered heartbeater for the task token. This should also flush any pending heartbeats.

def _heartbeat_processor(self): (source)

Undocumented

_heartbeat_completions: Dict[bytes, Callable] = (source)

Undocumented

Undocumented

_heartbeats: Dict[bytes, Callable[..., None]] = (source)

Undocumented

Undocumented

_queue_poller_executor = (source)

Undocumented