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-94398: TaskGroup: Fail create_task() during shutdown #94400
Conversation
Once the task group is shutting down, it should not be possible to create a new task. Here "shutting down" means `self._aborting` is set, indicating that at least one task has failed and we have cancelled all others.
|
@ambv feel like reviewing this? Pablo thought it would make a nice addition to the (still stuck) beta. |
|
Looking. |
Misc/NEWS.d/next/Library/2022-06-29-04-42-56.gh-issue-94398.YOq_bJ.rst
Outdated
Show resolved
Hide resolved
|
Thanks, let me see if I can add something to the now-existing TaskGroup docs about these semantics. |
0. Update text start and stop conditions. 1. Title-case sections but not subsections. 2. Edit Shell Window sections: title, execute, restart.
…honGH-94347) Three test cases were failing on FreeBSD with latest OpenSSL.
…nGH-94366) This should have been spotted by sphinx-lint, tracked here: sphinx-contrib/sphinx-lint#39
…ythonGH-94200) Remove the pure Python implementation of hashlib.pbkdf2_hmac(), deprecated in Python 3.10. Python 3.10 and newer requires OpenSSL 1.1.1 or newer (PEP 644), this OpenSSL version provides a C implementation of pbkdf2_hmac() which is faster.
…honGH-94040) Closes python#94018. Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
… the dispatching in ceval.c (python#94364)
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
|
Sorry for the git mess. I really just merged main (twice, apparently) and added one line to the documentation: 5b9817d |
|
Thanks @gvanrossum for the PR, and @ambv for merging it |
…GH-94400) Once the task group is shutting down, it should not be possible to create a new task. Here "shutting down" means `self._aborting` is set, indicating that at least one task has failed and we have cancelled all others. Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 594c369) Co-authored-by: Guido van Rossum <guido@python.org>
|
GH-94463 is a backport of this pull request to the 3.11 branch. |
…H-94463) Once the task group is shutting down, it should not be possible to create a new task. Here "shutting down" means `self._aborting` is set, indicating that at least one task has failed and we have cancelled all others. Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 594c369) Co-authored-by: Guido van Rossum <guido@python.org>
Once the task group is shutting down,
it should not be possible to create a new task.
Here "shutting down" means
self._abortingis set,indicating that at least one task has failed and we have
cancelled all others.