Skip to content

gh-152020: Fix asyncio.all_tasks() loosing eager tasks on FT-build#152022

Merged
kumaraditya303 merged 11 commits into
python:mainfrom
deadlovelll:gh-152020-eager-ft
Jun 24, 2026
Merged

gh-152020: Fix asyncio.all_tasks() loosing eager tasks on FT-build#152022
kumaraditya303 merged 11 commits into
python:mainfrom
deadlovelll:gh-152020-eager-ft

Conversation

@deadlovelll

Copy link
Copy Markdown
Contributor

Fixes asyncio.all_tasks() dropping eager-started tasks when called from another thread on the FT build.

For more details see gh-152020

Comment thread Lib/test/test_free_threading/test_asyncio.py Outdated
Comment thread Misc/NEWS.d/next/Core_and_Builtins/2026-06-23-19-50-22.gh-issue-152020.DTKXjR.rst Outdated
…e-152020.DTKXjR.rst

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
@kumaraditya303 kumaraditya303 added topic-asyncio needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Jun 24, 2026
Comment thread Lib/test/test_asyncio/test_free_threading.py Outdated
deadlovelll and others added 2 commits June 24, 2026 13:54
@kumaraditya303 kumaraditya303 merged commit ad2cabf into python:main Jun 24, 2026
58 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @deadlovelll for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Sorry, @deadlovelll and @kumaraditya303, I could not cleanly backport this to 3.14 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker ad2cabfccb539dd23f9a17907bd63913013cb1e3 3.14

@bedevere-app

bedevere-app Bot commented Jun 24, 2026

Copy link
Copy Markdown

GH-152076 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Jun 24, 2026
@deadlovelll

Copy link
Copy Markdown
Contributor Author

Sorry, @deadlovelll and @kumaraditya303, I could not cleanly backport this to 3.14 due to a conflict. Please backport using cherry_picker on command line.

cherry_picker ad2cabfccb539dd23f9a17907bd63913013cb1e3 3.14

@kumaraditya303 Do you mind if I try to resolve the conflict myself?

@kumaraditya303

Copy link
Copy Markdown
Contributor

Yeah, feel free

kumaraditya303 added a commit that referenced this pull request Jun 24, 2026
…-build (GH-152022) (#152076)

gh-152020: Fix `asyncio.all_tasks()` loosing eager tasks on FT-build (GH-152022)
(cherry picked from commit ad2cabf)

Co-authored-by: Timofei <128279579+deadlovelll@users.noreply.github.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
@bedevere-app

bedevere-app Bot commented Jun 24, 2026

Copy link
Copy Markdown

GH-152078 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Jun 24, 2026
kumaraditya303 pushed a commit that referenced this pull request Jun 24, 2026
…uild (GH-152022) (#152078)

[3.14] gh-152020: Fix `asyncio.all_tasks()` loosing eager tasks on FT-build (#152022)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants