asyncio.gather Raised at 0.5 s, Then 3 Tool Calls Still Ran
This story is from 2026-11-22. It is preserved in the archive; the latest stories are on the live feed.
When one awaitable in asyncio.gather() raises, gather hands you the exception right away but does not cancel the others, so they keep running and finish their side effects after your except block has already run; if one failed tool call should stop the batch, use asyncio.TaskGroup and catch Excepti…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-11-22 05:04 · DEV Community — AI
asyncio.gather Raised at 0.5 s, Then 3 Tool Calls Still Ran