Skip to content

Make asyncio task groups prevent child tasks from being GCed #93297

Description

@1st1

We discovered that sometimes child tasks in a task group can be picked up by a GC which leads to extremely hard to debug problems. This is fixable by switching to use a set() instead of weakset to internally track child tasks. I'll make a PR shortly.

See also geldata/gel#3914.

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    on May 27, 2022
  2. added a commit that references this issue on May 27, 2022
  3. added a commit that references this issue on May 27, 2022
  4. AlexWaygood commented on May 28, 2022

    @AlexWaygood
    Member

    Closing, as I believe this was fixed in #93299, and backported in #93305. (Please reopen if there's more to do here).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions