Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
149
def
release_local(local):
Callers
nothing calls this directly
Calls
4
is_alive
Method · 0.80
set
Method · 0.45
wait
Method · 0.45
join
Method · 0.45
Tested by
no test coverage detected