Skip to main content

disable_events

Tell worker(s) to stop sending task-related events.

def disable_events(
state: object
) - > dict

Tell worker(s) to stop sending task-related events.

Parameters

NameTypeDescription
stateobjectThe current worker state object containing the consumer and event dispatcher instances.

Returns

TypeDescription
dictA status dictionary containing either an 'ok' success message or a 'error' message if the event dispatcher is unavailable.