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)
| 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) |