diff options
author | Charles Machalow <csm10495@gmail.com> | 2025-03-03 02:01:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-03 02:01:45 (GMT) |
commit | f97e4098ff71a6488fd3411f9f9e6fa7a7bb4efe (patch) | |
tree | e81820b273c83b41ab2d194bb9434ef16834871c /Python/formatter_unicode.c | |
parent | 7afa476874b9a432ad6dbe9fb3e65d62f2999f88 (diff) | |
download | cpython-f97e4098ff71a6488fd3411f9f9e6fa7a7bb4efe.zip cpython-f97e4098ff71a6488fd3411f9f9e6fa7a7bb4efe.tar.gz cpython-f97e4098ff71a6488fd3411f9f9e6fa7a7bb4efe.tar.bz2 |
gh-128041: Add `terminate_workers` and `kill_workers` methods to ProcessPoolExecutor (GH-128043)
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)
Diffstat (limited to 'Python/formatter_unicode.c')
0 files changed, 0 insertions, 0 deletions