asyncio.gather Raised an Exception but the Other Tasks Kept Running: TaskGroup vs return_exceptions
DEV · 14.11.2026 · 22:58
If one coroutine in asyncio.gather() raises, the exception propagates to your await, but the sibling tasks are not cancelled. They keep running in the background, still holding connections…