This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author achimnol
Recipients achimnol, asvetlov, gvanrossum, yselivanov
Date 2022-02-24.07:27:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1645687653.86.0.836954881.issue46844@roundup.psfhosted.org>
In-reply-to
Content
An example would be like:

tg = asyncio.TaskGroup()
...
async with tg:
  with asyncio.TaskGroupBinder(tg):  # just a hypothetical API
    asyncio.create_task(...)         # equivalent to tg.create_task(...)
    await some_library.some_work()   # all tasks are bound to tg
  asyncio.create_task(...)           # fire-and-forget (not bound to tg)

If TaskGroup supports enumeration/counting of its own tasks and asyncio allows enumeration of TaskGroups just like asyncio.Task.all_tasks(), we could extend aiomonitor to provide per-taskgroup statistics.

In my projects, we have multiple cases to find and fix bugs in customer sites using aiomonitor and I'm willing to improve aiomonitor to support task groups as well.
History
Date User Action Args
2022-02-24 07:27:33achimnolsetrecipients: + achimnol, gvanrossum, asvetlov, yselivanov
2022-02-24 07:27:33achimnolsetmessageid: <1645687653.86.0.836954881.issue46844@roundup.psfhosted.org>
2022-02-24 07:27:33achimnollinkissue46844 messages
2022-02-24 07:27:33achimnolcreate