MCPcopy
hub / github.com/celery/celery / on_stop

Method on_stop

celery/worker/pidbox.py:89–94  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

87 c.pool.spawn_n(self.loop, c)
88
89 def on_stop(self):
90 if self._node_stopped:
91 self._node_shutdown.set()
92 debug('Waiting for broadcast thread to shutdown...')
93 self._node_stopped.wait()
94 self._node_stopped = self._node_shutdown = None
95
96 def reset(self):
97 self._resets += 1

Callers

nothing calls this directly

Calls 3

debugFunction · 0.85
setMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected