[issue46843] PersistentTaskGroup API

Tin Tvrtković report at bugs.python.org
Fri Feb 25 12:46:29 EST 2022


Tin Tvrtković <tinchester at gmail.com> added the comment:

The asyncio TaskGroup already uses a WeakSet for its children, so it's suitable for long-lived use.

As for errors in siblings aborting the TaskGroup, could you apply a wrapper to the scheduled coroutines to swallow and log any errors yourself?

Apart from the timeouts, that should get you a long way towards what you're describing.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46843>
_______________________________________


More information about the Python-bugs-list mailing list