cpython/Misc/NEWS.d/next/Library
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
..
2024-06-17-17-31-27.gh-issue-89083.nW00Yq.rst gh-89083: add support for UUID version 6 (RFC 9562) (#120650) 2025-03-02 12:41:56 +01:00
2024-09-16-17-03-52.gh-issue-124096.znin0O.rst gh-124096: Enable REPL virtual terminal support on Windows (#124119) 2025-02-23 20:30:33 +01:00
2024-10-20-13-01-05.gh-issue-125746.wDLTay.rst gh-125746: Delay deprecated zipimport.zipimporter.load_module removal time to 3.15 (#125748) 2025-02-11 23:59:09 +00:00
2024-11-27-23-29-05.gh-issue-109798.OPj1CT.rst gh-109798: Normalize _datetime and datetime error messages (#127345) 2025-02-12 09:54:22 -05:00
2024-12-17-18-53-21.gh-issue-128041.W96kAr.rst gh-128041: Add terminate_workers and kill_workers methods to ProcessPoolExecutor (GH-128043) 2025-03-02 18:01:45 -08:00
2025-01-15-12-04-30.gh-issue-128703.6WPf38.rst gh-128703: Fix mimetypes.guess_type for empty Content-Type in registry (GH-128854) 2025-02-14 17:26:26 +00:00
2025-01-26-15-35-53.gh-issue-129288.wB3uxU.rst gh-129288: Add optional l2_cid and l2_bdaddr_type in BTPROTO_L2CAP socket address tuple (#129293) 2025-02-27 12:51:47 +00:00
2025-01-26-19-35-06.gh-issue-96092.mMg3gL.rst gh-96092: Fix traceback.walk_stack(None) skipping too many frames (#129330) 2025-02-13 01:43:09 +00:00
2025-01-30-22-49-42.gh-issue-128231.SuEC18.rst gh-128231: Use runcode() return value for failing early (GH-129488) 2025-02-24 15:50:13 +01:00
2025-02-02-16-30-27.gh-issue-129569.i0kPOG.rst gh-129569: The function unicodedata.normalize() always returns built-in str (#129570) 2025-02-21 14:51:13 +01:00
2025-02-02-23-47-35.gh-issue-128641.GFs673.rst gh-128641: Fix ConfigParser.read Perfomance Regression (#129596) 2025-02-24 00:20:37 +00:00
2025-02-05-15-17-31.gh-issue-129678.GIUrmV.rst gh-129678: ConfigParser: do not write an empty unnamed section (GH-129679) 2025-02-17 14:24:57 +01:00
2025-02-08-15-13-43.gh-issue-97850.jQ0CvW.rst gh-97850: Update the deprecation warning of importlib.abc.Loader.load_module (GH-129855) 2025-02-11 11:04:16 -08:00
2025-02-10-09-45-49.gh-issue-129889.PBHXU5.rst gh-129889: Support context manager protocol by contextvars.Token (#129888) 2025-02-12 12:32:58 +01:00
2025-02-10-19-16-48.gh-issue-129965.B6wik0.rst gh-129965: Add missing MIME types (#129969) 2025-02-21 15:44:53 +00:00
2025-02-11-06-42-17.gh-issue-129948.ZcugY9.rst gh-129948: Add set() to multiprocessing.managers.SyncManager (#129949) 2025-02-23 20:07:33 +00:00
2025-02-11-18-37-26.gh-issue-127750.41SDhF.rst gh-127750: Fix and optimize functools.singledispatchmethod() (GH-130008) 2025-02-17 11:11:20 +02:00
2025-02-12-12-38-24.gh-issue-129726.jB0sxu.rst gh-129726: Break gzip.GzipFile reference loop (#130055) 2025-02-28 09:09:24 +01:00
2025-02-13-02-03-38.gh-issue-118761.le_qEg.rst gh-118761: Improve import time of cmd module (#130056) 2025-02-17 20:06:08 +00:00
2025-02-14-23-38-03.gh-issue-127260.dXQ8P0.rst gh-127260: Improve error consistency in both fromisoformat implementations (#130134) 2025-02-18 15:49:28 +00:00
2025-02-15-01-37-47.gh-issue-130139.gntc7B.rst gh-130139: always check ast node type in ast.parse() with ast input (#130140) 2025-02-16 13:32:39 +00:00
2025-02-15-07-50-37.gh-issue-130145.I0CkV0.rst gh-130145: fix loop.run_forever when loop is already running (#130146) 2025-02-15 15:01:53 +05:30
2025-02-15-12-36-49.gh-issue-130151.3IFumF.rst gh-130151: Fix reference leaks in _hashlib.hmac_{new,digest} (GH-130152) 2025-02-24 00:09:14 +00:00
2025-02-16-08-56-48.gh-issue-130164.vvoaU2.rst gh-130164: Fix inspect.Signature.bind() handling of positional-only args without defaults (GH-130192) 2025-02-18 17:19:04 +02:00
2025-02-16-10-12-27.gh-issue-118761.TNw5ZC.rst gh-118761: Revert "Improve import time of subprocess (GH-129427)" (#130201) 2025-02-16 18:40:08 +00:00
2025-02-16-18-13-40.gh-issue-128520.iZtOMz.rst GH-128520: More consistent type-checking behaviour in pathlib (#130199) 2025-02-21 17:47:45 +00:00
2025-02-17-21-01-25.gh-issue-126944.49YTHZ.rst gh-126944: Show explicit errors when required arguments of pdb commands are missing (#130240) 2025-02-18 10:58:15 -05:00
2025-02-17-21-16-51.gh-issue-130230.9ta9P9.rst gh-130230: Fix crash in pow() with only Decimal third argument (GH-130237) 2025-02-18 09:46:48 +02:00
2025-02-19-01-29-16.gh-issue-57537.4tdVuK.rst gh-57537: Support breakpoints for zipimport modules on pdb (#130290) 2025-02-19 21:01:04 -05:00
2025-02-19-19-29-19.gh-issue-130250.T00tql.rst gh-130250: fix regression in traceback.print_last (#130318) 2025-02-19 21:44:35 +00:00
2025-02-19-20-29-33.gh-issue-107773.7y6Ug2.rst gh-107773: Make datetime subclass repr consistent both implementations (#130308) 2025-02-23 16:29:31 -05:00
2025-02-21-09-05-44.gh-issue-124703.AMJD4Y.rst gh-124703: Change back to raising bdb.BdbQuit when exiting pdb in 'inline' mode in a REPL session (#130395) 2025-02-24 21:27:26 -05:00
2025-02-21-10-32-05.gh-issue-130285.C0fkh7.rst gh-130285: Fix handling of zero or empty counts in random.sample() (gh-130291) 2025-02-21 11:33:10 -06:00
2025-02-21-20-16-32.gh-issue-125413.YJ7Msf.rst GH-125413: Add private pathlib.Path method to write metadata (#130238) 2025-02-26 21:07:27 +00:00
2025-02-21-20-22-45.gh-issue-65697.BLxt6y.rst gh-65697: Prevent configparser from writing keys it cannot properly read (#129270) 2025-02-23 11:06:33 -05:00
2025-02-21-21-50-21.gh-issue-125413.DEAD0L.rst GH-125413: Fix stale metadata from pathlib.Path.copy() and move() (#130424) 2025-02-24 19:10:50 +00:00
2025-02-24-14-46-20.gh-issue-130379.lsef7A.rst gh-130379: Fix incorrect zipapp logic to avoid including the target in itself (gh-130509) 2025-02-26 11:25:30 +00:00
2025-02-25-03-53-00.gh-issue-130461.asr2dg.rst gh-130461: Remove unnecessary usages of .. index:: directives in Doc/library/uuid.rst (#130526) 2025-02-25 14:27:50 +02:00
2025-02-26-21-21-08.gh-issue-130608.f7ix0Y.rst GH-130608: Remove dirs_exist_ok argument from pathlib.Path.copy() (#130610) 2025-02-28 19:29:20 +00:00
2025-02-28-01-10-14.gh-issue-130660.VIThEz.rst gh-130660: Restore sys.ps1 and sys.ps2 after code.interact (#130661) 2025-02-28 13:15:55 -05:00
2025-02-28-11-56-19.gh-issue-130665.cfksVk.rst gh-130665: Only apply locale to calendar CLI via --locale and not LANG env var (#130676) 2025-02-28 16:24:05 +02:00
2025-03-01-02-19-28.gh-issue-130637.swet54w4rs.rst gh-130637: Add validation for numeric response data in stat() method (#130646) 2025-03-02 08:05:40 -05:00
README.rst Link to blurb on PyPI in the NEWS.d READMEs. (#3323) 2017-09-05 10:38:05 -07:00

Put news entry `blurb`_ files for the *Library* section in this directory.

.. _blurb: https://pypi.org/project/blurb/