-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
gh-131788: make resource_tracker re-entrant safe #131787
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-131788: make resource_tracker re-entrant safe #131787
Conversation
cecd4e3
to
b99fcbe
Compare
b99fcbe
to
9114b16
Compare
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Misc/NEWS.d/next/Library/2025-03-27-08-13-32.gh-issue-131788.0RWiFc.rst
Outdated
Show resolved
Hide resolved
FWIW I'm not sure we should backport this to stable releases as a bug fix. Unless someone is seeing it in their actual application code, lets keep the change risk low? Or conservatively hold off on backporting until this gets some exposure in a few 3.14 (beta) releases. |
It will need to be merged soon to get it into the release! |
I'm seeing the re-entrant error frequently in the CI and would love to see this fixed. I'm not sure what test failures were on this PR because they got deleted due to age, so I merged main back into the PR branch. |
Thanks @graingert for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
* make resource_tracker re-entrant safe * Update Lib/multiprocessing/resource_tracker.py * trim trailing whitespace * use f-string and args = [x, *y, z] * raise self._reentrant_call_error --------- (cherry picked from commit f24a012) Co-authored-by: Thomas Grainger <tagrain@gmail.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* make resource_tracker re-entrant safe * Update Lib/multiprocessing/resource_tracker.py * trim trailing whitespace * use f-string and args = [x, *y, z] * raise self._reentrant_call_error --------- (cherry picked from commit f24a012) Co-authored-by: Thomas Grainger <tagrain@gmail.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
GH-137737 is a backport of this pull request to the 3.14 branch. |
GH-137738 is a backport of this pull request to the 3.13 branch. |
|
Uh oh!
There was an error while loading. Please reload this page.