mirror of
https://github.com/python/cpython.git
synced 2025-11-03 15:11:34 +00:00
This adds two new methods to `multiprocessing`'s `ProcessPoolExecutor`: - **`terminate_workers()`**: forcefully terminates worker processes using `Process.terminate()` - **`kill_workers()`**: forcefully kills worker processes using `Process.kill()` These methods provide users with a direct way to stop worker processes without `shutdown()` or relying on implementation details, addressing situations where immediate termination is needed. Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Commit-message-mostly-authored-by: Claude Sonnet 3.7 (because why not -greg) |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| executor.py | ||
| test_as_completed.py | ||
| test_deadlock.py | ||
| test_future.py | ||
| test_init.py | ||
| test_interpreter_pool.py | ||
| test_process_pool.py | ||
| test_shutdown.py | ||
| test_thread_pool.py | ||
| test_wait.py | ||
| util.py | ||