MCPcopy
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_closeMethod · 0.95

Calls 1

closeMethod · 0.45

Tested by 2

test_on_closeMethod · 0.76