Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/celery/celery
/ on_close
Method
on_close
celery/concurrency/prefork.py:196–198 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
194
self._pool = None
195
196
def
on_close(self):
197
if
self._pool is not None and self._pool._state == RUN:
198
self._pool.close()
199
200
def
_get_info(self):
201
write_stats = getattr(self._pool,
'human_write_stats'
, None)
Callers
2
test_on_close
Method · 0.95
test_on_close__pool_not_running
Method · 0.95
Calls
1
close
Method · 0.45
Tested by
2
test_on_close
Method · 0.76
test_on_close__pool_not_running
Method · 0.76