You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
asyncio.TaskGroup hangs on cancel with eager task factory #155418
With eager TF, a child task that calls tg.cancel() before it suspends is never cancelled, and the group hangs forever. This happens if we dont have a suspension point before cancelling the group in the child, abort() happens before the task added to the self._tasks and run on empty list. Then __aexit__ hangs on await self._on_completed_fut that tries to wait task that is not cancelled
Activity
pythongh-155418: Fix TaskGroup hang when a task cancels it before sus…
Merge branch 'main' into pythongh-155418-tg-hang
gh-155418: Fix TaskGroup hang when a task cancels it before suspending (
[3.15] gh-155418: Fix TaskGroup hang when a task cancels it before su…
pythongh-155418: Fix TaskGroup hang when a task cancels it before sus…