MCPcopy Index your code
hub / github.com/python/cpython / _maintain_pool

Method _maintain_pool

Lib/multiprocessing/pool.py:334–343  ·  view source on GitHub ↗

Clean up any exited workers and start replacements for them.

(ctx, Process, processes, pool, inqueue, outqueue,
                       initializer, initargs, maxtasksperchild,
                       wrap_exception)

Source from the content-addressed store, hash-verified

332
333 @staticmethod
334 def _maintain_pool(ctx, Process, processes, pool, inqueue, outqueue,
335 initializer, initargs, maxtasksperchild,
336 wrap_exception):
337 """Clean up any exited workers and start replacements for them.
338 """
339 if Pool._join_exited_workers(pool):
340 Pool._repopulate_pool_static(ctx, Process, processes, pool,
341 inqueue, outqueue, initializer,
342 initargs, maxtasksperchild,
343 wrap_exception)
344
345 def _setup_queues(self):
346 self._inqueue = self._ctx.SimpleQueue()

Callers 1

_handle_workersMethod · 0.80

Calls 2

_join_exited_workersMethod · 0.80

Tested by

no test coverage detected