MCPcopy
hub / github.com/celery/celery / stop

Method stop

celery/utils/threads.py:86–91  ·  view source on GitHub ↗

Graceful shutdown.

(self)

Source from the content-addressed store, hash-verified

84 pass
85
86 def stop(self):
87 """Graceful shutdown."""
88 self.__is_shutdown.set()
89 self.__is_stopped.wait()
90 if self.is_alive():
91 self.join(THREAD_TIMEOUT_MAX)
92
93
94def 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