René's URL Explorer Experiment


Title: gh-128041: Add a terminate_workers method to ProcessPoolExecutor by csm10495 · Pull Request #128043 · python/cpython · GitHub

Open Graph Title: gh-128041: Add a terminate_workers method to ProcessPoolExecutor by csm10495 · Pull Request #128043 · python/cpython

X Title: gh-128041: Add a terminate_workers method to ProcessPoolExecutor by csm10495 · Pull Request #128043 · python/cpython

Description: Provides a way to forcefully stop all the workers in the pool Typically this would be used as a last effort to stop all workers if unable to shutdown / join in the expected way. Issue: gh-128041

Open Graph Description: Provides a way to forcefully stop all the workers in the pool Typically this would be used as a last effort to stop all workers if unable to shutdown / join in the expected way. Issue: gh-128041

X Description: Provides a way to forcefully stop all the workers in the pool Typically this would be used as a last effort to stop all workers if unable to shutdown / join in the expected way. Issue: gh-128041

Opengraph URL: https://github.com/python/cpython/pull/128043

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:34d3d193-5f0d-6421-234f-15b66d0cd4be
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9DBA:2EC266:268358C:34B16E3:696ACDA9
html-safe-nonce98fd0bcd8076a0887d54c13880a7ccb0c8918ed26dd62c26d87eb44a0f0d2f8d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REJBOjJFQzI2NjoyNjgzNThDOjM0QjE2RTM6Njk2QUNEQTkiLCJ2aXNpdG9yX2lkIjoiNDI2NzY3MzQyMDU1MjY1NDI0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf69b3e2da8c942ec00f128b4669297e5daed13880aa2d974dd536da379e95ef0
hovercard-subject-tagpull_request:2240405028
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/128043/files
twitter:imagehttps://avatars.githubusercontent.com/u/5749838?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/5749838?s=400&v=4
og:image:altProvides a way to forcefully stop all the workers in the pool Typically this would be used as a last effort to stop all workers if unable to shutdown / join in the expected way. Issue: gh-128041
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonec785f4ce187e9e7331257791b36ddee01625bb8e292a9b4fe2c16d4c006abf5d
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec718a376fcf780eb22089171adb84a543f660bf7
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/128043/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F128043%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F128043%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/128043/files
Reloadhttps://github.com/python/cpython/pull/128043/files
Reloadhttps://github.com/python/cpython/pull/128043/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/128043/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/128043/files
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
gpsheadhttps://github.com/gpshead
python:mainhttps://github.com/python/cpython/tree/main
csm10495:terminate_workershttps://github.com/csm10495/cpython/tree/terminate_workers
Conversation 87 https://github.com/python/cpython/pull/128043
Commits 36 https://github.com/python/cpython/pull/128043/commits
Checks 37 https://github.com/python/cpython/pull/128043/checks
Files changed 5 https://github.com/python/cpython/pull/128043/files
gh-128041: Add a terminate_workers method to ProcessPoolExecutor https://github.com/python/cpython/pull/128043/files#top
Show all changes 36 commits https://github.com/python/cpython/pull/128043/files
47b162a gh-128041 - Add a terminate_workers method to ProcessPoolExecutor csm10495 Dec 17, 2024 https://github.com/python/cpython/pull/128043/commits/47b162aac9d4d4c14449506989715a4f1738f449
6ef8833 📜🤖 Added by blurb_it. blurb-it[bot] Dec 17, 2024 https://github.com/python/cpython/pull/128043/commits/6ef88338b9050e9b2b6f5068dce1015e3e4bf8e4
61c9b14 Fix lint csm10495 Dec 17, 2024 https://github.com/python/cpython/pull/128043/commits/61c9b1481746e7a7d18c6d53a4f454228983465d
3bf5464 Swap to SIGTERM as the default csm10495 Dec 17, 2024 https://github.com/python/cpython/pull/128043/commits/3bf5464143436a253e5104ae63fb8b294ca35c7a
4b285b8 Add some tests csm10495 Dec 17, 2024 https://github.com/python/cpython/pull/128043/commits/4b285b88b7180de209bb35de6cf1c635fd34ac8f
b4939fd Update some docs csm10495 Dec 17, 2024 https://github.com/python/cpython/pull/128043/commits/b4939fd7ae7c8e326ba9b42718630f3a199a34a6
ba6a4c0 Fix docs csm10495 Dec 17, 2024 https://github.com/python/cpython/pull/128043/commits/ba6a4c04f29945c6932e7718bea26c576ad7a271
5d58e50 Fix docs csm10495 Dec 17, 2024 https://github.com/python/cpython/pull/128043/commits/5d58e50985869436bc373b1647fb9c59f9283db8
0db381b PR fixes/updates csm10495 Dec 17, 2024 https://github.com/python/cpython/pull/128043/commits/0db381bf2041e1784873ccb885048bb124c300e4
7ae1685 SIGKILL doesn't exist on windows csm10495 Dec 17, 2024 https://github.com/python/cpython/pull/128043/commits/7ae16857ebf144d86b129ec5c9f5f7d3f3506f15
f7ad96c Update Lib/concurrent/futures/process.py csm10495 Dec 17, 2024 https://github.com/python/cpython/pull/128043/commits/f7ad96cf9b87c344706badafd4e0b7f2b76417aa
2c0b578 Apply suggestions from code review csm10495 Dec 18, 2024 https://github.com/python/cpython/pull/128043/commits/2c0b578d653e7e33ce723bca446f5af466f287bd
a878221 Fix indenting from suggestions csm10495 Dec 18, 2024 https://github.com/python/cpython/pull/128043/commits/a878221e8d8e7a2f6297d7b114762867ea2ce558
794ee25 Internally call shutdown to prevent a resource leak when calling term… csm10495 Dec 20, 2024 https://github.com/python/cpython/pull/128043/commits/794ee25a979342de4d7ebccfecc2f46ba3319ca3
64693a7 Change test to not validate calling of os.kill since shutdown may cal… csm10495 Dec 20, 2024 https://github.com/python/cpython/pull/128043/commits/64693a7f69bf81923ddb191d2c837f20d5c82e0e
926dff1 Commit to retrigger CI csm10495 Dec 20, 2024 https://github.com/python/cpython/pull/128043/commits/926dff1d4aecaab9a14d050dae4fd44c63a2507f
6d77c10 Merge branch 'python:main' into terminate_workers csm10495 Feb 25, 2025 https://github.com/python/cpython/pull/128043/commits/6d77c10d6e228676dbdad385abb9441548f6256a
4429b2f PR feedback. Split terminate_workers into terminate_workers and kill_… csm10495 Feb 25, 2025 https://github.com/python/cpython/pull/128043/commits/4429b2f0b50476101c827973d02c601dc57c6d58
b8d6e5f Remove un-needed imports csm10495 Feb 25, 2025 https://github.com/python/cpython/pull/128043/commits/b8d6e5f04d4cc3a9f1db274adbac21cade825f5c
f9a7714 lint csm10495 Feb 25, 2025 https://github.com/python/cpython/pull/128043/commits/f9a77143b2e0642da9ed18f2d017a88bf0925423
7cfa42e Harden a test a bit to ensure the correct type of kill/terminate was … csm10495 Feb 25, 2025 https://github.com/python/cpython/pull/128043/commits/7cfa42eb1f2fe28560eda239517c86901e8428d2
2b31fab rekick ci csm10495 Feb 25, 2025 https://github.com/python/cpython/pull/128043/commits/2b31fab267f31d56c626e5592bca50c8ae9159f0
ad15ee5 Allow more time for queue to get data back csm10495 Feb 25, 2025 https://github.com/python/cpython/pull/128043/commits/ad15ee5f22a7aff2362ce8a5ef3d520a4caa736a
0f57912 Use subTest to break up tests csm10495 Feb 26, 2025 https://github.com/python/cpython/pull/128043/commits/0f5791232fb8d54dae000cd796af17f3a6b15e88
c16fde5 Merge branch 'main' into terminate_workers csm10495 Feb 26, 2025 https://github.com/python/cpython/pull/128043/commits/c16fde549be59fdad2aa807c6e6584911b281a0d
1bedb28 Apply suggestions from code review csm10495 Feb 27, 2025 https://github.com/python/cpython/pull/128043/commits/1bedb284d936579067ad1d005cda9146a8188558
f1b0cf6 PR feedback: swap to dict with constants, better subtest parameteriza… csm10495 Feb 27, 2025 https://github.com/python/cpython/pull/128043/commits/f1b0cf6de2adc6926208c581940ec144a4d5f023
cc5f359 swap to using context in the test csm10495 Feb 27, 2025 https://github.com/python/cpython/pull/128043/commits/cc5f35966a52cc4324cb48ca5cf10f89a232ca80
b3cc8a2 trailing whitespace csm10495 Feb 27, 2025 https://github.com/python/cpython/pull/128043/commits/b3cc8a22c947f8c857e968f7f9ea161fc2212fb7
dbf9d32 Various pr feedbacks csm10495 Mar 2, 2025 https://github.com/python/cpython/pull/128043/commits/dbf9d3238811e8716da164e5f3ffdd5bd34d3e4e
1e16da6 PR feedback: swap name of terminate_or_kill to force_shutdown csm10495 Mar 2, 2025 https://github.com/python/cpython/pull/128043/commits/1e16da6c2de8b50f29eff23c77a289cb6ca86557
52a5326 PR feedback: swap test names csm10495 Mar 2, 2025 https://github.com/python/cpython/pull/128043/commits/52a5326275a3204b7a62c3166a5eaf93fb7f2398
7f09586 PR feedback: use self.executor_type instead of ProcessPoolExecutor di… csm10495 Mar 2, 2025 https://github.com/python/cpython/pull/128043/commits/7f0958652cbba8828a6ecc2ffa898418d1c397af
d5f7578 Add constants for terminate/kill methods csm10495 Mar 2, 2025 https://github.com/python/cpython/pull/128043/commits/d5f757871f2c45122c61f91650ceda1e50a2af2a
0e42eca feedback to get below 80 chars per pep8 csm10495 Mar 2, 2025 https://github.com/python/cpython/pull/128043/commits/0e42eca198599b4a90373b5d50472915e35447b1
3f55347 Merge branch 'main' into terminate_workers csm10495 Mar 2, 2025 https://github.com/python/cpython/pull/128043/commits/3f55347c2e21f2ab3a13e489d06f74137b832e36
Clear filters https://github.com/python/cpython/pull/128043/files
Please reload this pagehttps://github.com/python/cpython/pull/128043/files
Please reload this pagehttps://github.com/python/cpython/pull/128043/files
concurrent.futures.rst https://github.com/python/cpython/pull/128043/files#diff-eb5cd13d65d2f215d8dc0d95eb1a1341ff69b226ac56ec6099e39582edecc8cf
3.14.rst https://github.com/python/cpython/pull/128043/files#diff-24e6cbe61d91e61059c44a7cf5f712499a11eb47a82d5f1a8db16ec7f9023c31
process.py https://github.com/python/cpython/pull/128043/files#diff-84a955ea642d41d9f164e9f94499d8eb33c357ec7f4362a341951f6f67ab21a1
test_process_pool.py https://github.com/python/cpython/pull/128043/files#diff-ceb3c61e8d982ca1de088c471618cc635c2660f42a53af0902cad78d6dffacfc
2024-12-17-18-53-21.gh-issue-128041.W96kAr.rst https://github.com/python/cpython/pull/128043/files#diff-ffdf9ae32c138470e51f4aa4b4ec84e5e0ff72a677e78efe6a87e522b7e9f53d
Doc/library/concurrent.futures.rsthttps://github.com/python/cpython/pull/128043/files#diff-eb5cd13d65d2f215d8dc0d95eb1a1341ff69b226ac56ec6099e39582edecc8cf
View file https://github.com/csm10495/cpython/blob/3f55347c2e21f2ab3a13e489d06f74137b832e36/Doc/library/concurrent.futures.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/128043/{{ revealButtonHref }}
https://github.com/python/cpython/pull/128043/files#diff-eb5cd13d65d2f215d8dc0d95eb1a1341ff69b226ac56ec6099e39582edecc8cf
https://github.com/python/cpython/pull/128043/files#diff-eb5cd13d65d2f215d8dc0d95eb1a1341ff69b226ac56ec6099e39582edecc8cf
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L114
Doc/whatsnew/3.14.rsthttps://github.com/python/cpython/pull/128043/files#diff-24e6cbe61d91e61059c44a7cf5f712499a11eb47a82d5f1a8db16ec7f9023c31
View file https://github.com/csm10495/cpython/blob/3f55347c2e21f2ab3a13e489d06f74137b832e36/Doc/whatsnew/3.14.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/128043/{{ revealButtonHref }}
https://github.com/python/cpython/pull/128043/files#diff-24e6cbe61d91e61059c44a7cf5f712499a11eb47a82d5f1a8db16ec7f9023c31
https://github.com/python/cpython/pull/128043/files#diff-24e6cbe61d91e61059c44a7cf5f712499a11eb47a82d5f1a8db16ec7f9023c31
Lib/concurrent/futures/process.pyhttps://github.com/python/cpython/pull/128043/files#diff-84a955ea642d41d9f164e9f94499d8eb33c357ec7f4362a341951f6f67ab21a1
View file https://github.com/csm10495/cpython/blob/3f55347c2e21f2ab3a13e489d06f74137b832e36/Lib/concurrent/futures/process.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/128043/{{ revealButtonHref }}
https://github.com/python/cpython/pull/128043/files#diff-84a955ea642d41d9f164e9f94499d8eb33c357ec7f4362a341951f6f67ab21a1
https://github.com/python/cpython/pull/128043/files#diff-84a955ea642d41d9f164e9f94499d8eb33c357ec7f4362a341951f6f67ab21a1
https://github.com/python/cpython/pull/128043/files#diff-84a955ea642d41d9f164e9f94499d8eb33c357ec7f4362a341951f6f67ab21a1
Please reload this pagehttps://github.com/python/cpython/pull/128043/files
Lib/test/test_concurrent_futures/test_process_pool.pyhttps://github.com/python/cpython/pull/128043/files#diff-ceb3c61e8d982ca1de088c471618cc635c2660f42a53af0902cad78d6dffacfc
View file https://github.com/csm10495/cpython/blob/3f55347c2e21f2ab3a13e489d06f74137b832e36/Lib/test/test_concurrent_futures/test_process_pool.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/128043/{{ revealButtonHref }}
Please reload this pagehttps://github.com/python/cpython/pull/128043/files
https://github.com/python/cpython/pull/128043/files#diff-ceb3c61e8d982ca1de088c471618cc635c2660f42a53af0902cad78d6dffacfc
https://github.com/python/cpython/pull/128043/files#diff-ceb3c61e8d982ca1de088c471618cc635c2660f42a53af0902cad78d6dffacfc
https://github.com/python/cpython/pull/128043/files#diff-ceb3c61e8d982ca1de088c471618cc635c2660f42a53af0902cad78d6dffacfc
gpsheadhttps://github.com/gpshead
Mar 3, 2025https://github.com/python/cpython/pull/128043/files#r1976790912
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/128043/files
https://github.com/python/cpython/pull/128043/files#diff-ceb3c61e8d982ca1de088c471618cc635c2660f42a53af0902cad78d6dffacfc
Misc/NEWS.d/next/Library/2024-12-17-18-53-21.gh-issue-128041.W96kAr.rsthttps://github.com/python/cpython/pull/128043/files#diff-ffdf9ae32c138470e51f4aa4b4ec84e5e0ff72a677e78efe6a87e522b7e9f53d
View file https://github.com/csm10495/cpython/blob/3f55347c2e21f2ab3a13e489d06f74137b832e36/Misc/NEWS.d/next/Library/2024-12-17-18-53-21.gh-issue-128041.W96kAr.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/128043/{{ revealButtonHref }}
Please reload this pagehttps://github.com/python/cpython/pull/128043/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.