Skip to content

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

Closed
@1st1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions