Skip to content

gh-159041: Fix asyncio task tracking during thread state cleanup - #159073

Draft
ngoldbaum wants to merge 2 commits into
python:mainfrom
ngoldbaum:fix-asyncio-ts-clear
Draft

ngoldbaum wants to merge 2 commits into
python:mainfrom
ngoldbaum:fix-asyncio-ts-clear

Conversation

@ngoldbaum

@ngoldbaum ngoldbaum commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Move lingering asyncio tasks to the interpreter only after all finalizer-capable thread-state cleanup has completed. Also transfer tasks created by finalizers during interpreter shutdown.

Add regression tests for both thread-state and interpreter cleanup paths.

Move lingering asyncio tasks to the interpreter only after all
finalizer-capable thread-state cleanup has completed. Also transfer tasks
created by finalizers during interpreter shutdown.

Add regression tests for both thread-state and interpreter cleanup paths.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant