MCPcopy Create free account
hub / github.com/celery/celery / start

Method start

celery/worker/components.py:77–81  ·  view source on GitHub ↗
(self, w)

Source from the content-addressed store, hash-verified

75 return self
76
77 def start(self, w):
78 # Ensure the kombu hub's poller is initialized before the event loop starts.
79 # Since asynloop() no longer resets the hub on exit (to preserve timers
80 # during shutdown), we must initialize the poller upfront.
81 _ = w.hub.poller
82
83 def stop(self, w):
84 w.hub.close()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected