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

Method stop

celery/utils/threads.py:141–146  ·  view source on GitHub ↗

Graceful shutdown.

(self)

Source from the content-addressed store, hash-verified

139 pass
140
141 def stop(self):
142 """Graceful shutdown."""
143 self.__is_shutdown.set()
144 self.__is_stopped.wait()
145 if self.is_alive():
146 self.join(THREAD_TIMEOUT_MAX)
147
148
149def release_local(local):

Callers

nothing calls this directly

Calls 4

is_aliveMethod · 0.80
setMethod · 0.45
waitMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected