Skip to content

Commit

Permalink
Update docs about the recent behavior change of PersistentTaskGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
achimnol committed May 3, 2023
1 parent 4970051 commit 13fc171
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/aiotools.taskgroup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Task Group
All existing codes should run without any issues, but it is
recommended to test thoroughly.


.. class:: PersistentTaskGroup(*, name=None, exception_handler=None)

Provides an abstraction of long-running task groups for server applications.
Expand Down Expand Up @@ -140,6 +141,14 @@ Task Group
All existing codes should run without any issues, but it is
recommended to test thoroughly.

.. versionchanged:: 1.6.1

It no longer raises :exc:`BaseExceptionGroup` or exc:`ExceptionGroup`
upon exit or :meth:`shutdown()`, because it no longer stores the history
of unhnadled exceptions from subtasks to prevent memory leaks for
long-running persistent task groups. The users must register explicit
exception handlers or task done callbacks to report or process such
unhandled exceptions.

.. exception:: TaskGroupError

Expand Down

0 comments on commit 13fc171

Please sign in to comment.