MCPcopy
hub / github.com/celery/celery / enable_events

Function enable_events

celery/worker/control.py:345–352  ·  view source on GitHub ↗

Tell worker(s) to send task-related events.

(state)

Source from the content-addressed store, hash-verified

343
344@control_command()
345def enable_events(state):
346 """Tell worker(s) to send task-related events."""
347 dispatcher = state.consumer.event_dispatcher
348 if dispatcher.groups and 'task' not in dispatcher.groups:
349 dispatcher.groups.add('task')
350 logger.info('Events of group {task} enabled by remote.')
351 return ok('task events enabled')
352 return ok('task events already enabled')
353
354
355@control_command()

Callers

nothing calls this directly

Calls 3

okFunction · 0.85
addMethod · 0.45
infoMethod · 0.45

Tested by

no test coverage detected