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
| Name | Type | Description |
|---|---|---|
| state | object | The current worker state object containing the consumer and event dispatcher instances. |
Returns
| Type | Description |
|---|---|
dict | A status dictionary containing either an 'ok' success message or a 'error' message if the event dispatcher is unavailable. |