cpython/Doc/whatsnew
Charles Machalow f97e4098ff
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)
2025-03-02 18:01:45 -08:00
..
2.0.rst gh-101100: Fix Sphinx warnings in whatsnew/2.0.rst (#112351) 2024-02-25 02:45:56 -07:00
2.1.rst gh-101100: Add a table of class attributes to the "Custom classes" section of the data model docs (#124480) 2024-09-25 19:29:58 +00:00
2.2.rst gh-101100: Add a table of class attributes to the "Custom classes" section of the data model docs (#124480) 2024-09-25 19:29:58 +00:00
2.3.rst Use roles :data: and :const: for referencing module variables (GH-129507) 2025-02-04 16:16:41 +02:00
2.4.rst GH-103484: Fix broken links reported by linkcheck (#124169) 2024-09-17 17:05:15 +02:00
2.5.rst gh-120345: Fix incorrect use of the :class: role with the "()" suffix (GH-120347) 2024-06-12 17:23:03 +03:00
2.6.rst gh-101100: Consolidate documentation on ModuleType attributes (#124709) 2024-10-09 10:53:57 +00:00
2.7.rst Use roles :data: and :const: for referencing module variables (GH-129507) 2025-02-04 16:16:41 +02:00
3.0.rst gh-101100: Fix sphinx warnings in whatsnew/3.0.rst (#127662) 2024-12-10 12:22:37 +02:00
3.1.rst Replace non-breaking spaces with normal spaces (#130116) 2025-02-16 09:33:14 +08:00
3.2.rst gh-101100: Consolidate documentation on ModuleType attributes (#124709) 2024-10-09 10:53:57 +00:00
3.3.rst gh-128349: Use .. data:: instead of .. class:: for pre-defined decimal Context objects (#128379) 2025-01-02 09:20:31 +02:00
3.4.rst Use roles :data: and :const: for referencing module variables (GH-129507) 2025-02-04 16:16:41 +02:00
3.5.rst Replace non-breaking spaces with normal spaces (#130116) 2025-02-16 09:33:14 +08:00
3.6.rst Replace non-breaking spaces with normal spaces (#130116) 2025-02-16 09:33:14 +08:00
3.7.rst gh-101100: Fix sphinx warnings of removed opcodes (#127222) 2024-11-24 17:43:25 +02:00
3.8.rst gh-101100: Fix sphinx warnings of removed opcodes (#127222) 2024-11-24 17:43:25 +02:00
3.9.rst gh-101100: Fix sphinx warnings of removed opcodes (#127222) 2024-11-24 17:43:25 +02:00
3.10.rst gh-123492: Remove unnecessary :func: parentheses (#123493) 2024-08-30 14:34:09 +03:00
3.11.rst gh-101100: Fix sphinx warnings of removed opcodes (#127222) 2024-11-24 17:43:25 +02:00
3.12.rst gh-123299: Copyedit "What's New in Python 3.14" (#129970) 2025-02-10 23:46:36 +02:00
3.13.rst Use roles :data: and :const: for referencing module variables (GH-129507) 2025-02-04 16:16:41 +02:00
3.14.rst gh-128041: Add terminate_workers and kill_workers methods to ProcessPoolExecutor (GH-128043) 2025-03-02 18:01:45 -08:00
changelog.rst GH-121970: Extract `misc_news` into a new extension (#129577) 2025-02-02 16:17:02 +00:00
index.rst Fix file extensions for 3.14 Whats New (#118770) 2024-05-08 16:40:40 +00:00