Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
gh-128041: Addterminate_workers andkill_workers methods to ProcessPoolExecutor#130849
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation
…o ProcessPoolExecutorAdd some fixes to tests to make them no longer transient
bedevere-bot commentedMar 4, 2025
🤖 New build scheduled with the buildbot fleet by@gpshead for commitec7599c 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F130849%2Fmerge If you want to schedule another build, you need to add the🔨 test-with-buildbots label again. |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
I've run 75 times in a row now without a failure.@colesbury mind checking again. Thanks for the feedback! |
Uh oh!
There was an error while loading.Please reload this page.
bedevere-bot commentedMar 4, 2025
🤖 New build scheduled with the buildbot fleet by@colesbury for commit92a2d72 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F130849%2Fmerge If you want to schedule another build, you need to add the🔨 test-with-buildbots label again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks@csm10495, this looks good to me!
I rescheduled the buildbots and I'm also running some stress tests locally. So far, it looks good!
Uh oh!
There was an error while loading.Please reload this page.
I don't think those buildbot failures are related, but not 100% sure. |
ba05a4e intopython:mainUh oh!
There was an error while loading.Please reload this page.
…o ProcessPoolExecutor (pythonGH-130849)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>Co-authored-by: Sam Gross@colesburyCommit-message-mostly-authored-by: Claude Sonnet 3.7 (because why not -greg)
Uh oh!
There was an error while loading.Please reload this page.
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.
This is a newer version of#128043 that includes fixes for transient issues seen in CI.
terminate_workerstoProcessPoolExecutor#128041📚 Documentation preview 📚:https://cpython-previews--130849.org.readthedocs.build/