MCPcopy
hub / github.com/celery/celery / _untrack_child_process

Method _untrack_child_process

celery/concurrency/asynpool.py:515–520  ·  view source on GitHub ↗
(self, proc, hub)

Source from the content-addressed store, hash-verified

513 self._event_process_exit, hub, proc)
514
515 def _untrack_child_process(self, proc, hub):
516 sentinel_poll = getattr(proc, '_sentinel_poll', None)
517 if sentinel_poll is not None:
518 proc._sentinel_poll = None
519 hub.remove(sentinel_poll)
520 os.close(sentinel_poll)
521
522 def register_with_event_loop(self, hub):
523 """Register the async pool with the current event loop."""

Calls 2

removeMethod · 0.45
closeMethod · 0.45