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

Method kill_workers

Lib/concurrent/futures/process.py:944–953  ·  view source on GitHub ↗

Attempts to kill the executor's workers. Iterates through all of the current worker processes and kills each one that is still alive. After killing workers, the pool will be in a broken state and no longer usable (for instance, new tasks should not be submitt

(self)

Source from the content-addressed store, hash-verified

942 return self._force_shutdown(operation=_TERMINATE)
943
944 def kill_workers(self):
945 """Attempts to kill the executor's workers.
946 Iterates through all of the current worker processes and kills
947 each one that is still alive.
948
949 After killing workers, the pool will be in a broken state
950 and no longer usable (for instance, new tasks should not be
951 submitted).
952 """
953 return self._force_shutdown(operation=_KILL)

Callers 1

test_kill_workersMethod · 0.80

Calls 1

_force_shutdownMethod · 0.95

Tested by 1

test_kill_workersMethod · 0.64