-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
Fix Queue.shutdown docs for condition to unblock a join #137088
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
Conversation
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.
Confirmed.
Maybe update also the documentation for Queue.join()
? It says when the count of unfinished tasks goes up or down. Since the claim that shutdown(immediate=True)
calls task_done()
was removed (as not literally correct), this no longer covers all cases.
Thanks @rhettinger for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
Sorry, @rhettinger, I could not cleanly backport this to
|
) (cherry picked from commit ea06ae5) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
GH-137102 is a backport of this pull request to the 3.13 branch. |
I missed this before. A hard shutdown only unblocks a join if all previous gets had a corresponding
task_done
.Demonstration:
📚 Documentation preview 📚: https://cpython-previews--137088.org.readthedocs.build/