Graceful shutdown of multi-agent tasks, specifically handling asynchronous generators.
Raw Developer Origin & Technical Request
GitHub Issue
May 9, 2026
### OpenSquilla version or commit
0.1.0
### Area
Web UI
### Reproduction steps
Start multi-agent task scheduling (scheduler)
Wait for subsequent agents to finish execution and auto-stop
Observe log output — Task exception was never retrieved error appears
### Expected behavior
Multi-agent shutdown should gracefully close async generators without throwing uncaught exceptions. This error only occurs when subsequent agents auto-stop; the first agent exits normally without this issue
### Actual behavior
When subsequent agents stop, the async generator's aclose() is called redundantly, throwing:
`RuntimeError: aclose(): asynchronous generator is already running`
Full traceback:
`ERROR 2026-05-09 16:30:09,930 [ERROR] asyncio: Task exception was never retrieved`
`ERROR future: `
`ERROR RuntimeError: aclose(): asynchronous generator is already running`
### Environment
Windows10
Developer Debate & Comments
No active discussions extracted for this entry yet.
Adjacent Repository Pain Points
Other highly discussed features and pain points extracted from opensquilla/opensquilla.
Frequently Asked Questions
Market intelligence mapped to Graceful shutdown of multi-agent tasks, specifically handling asynchronous generators..
What problem does Graceful shutdown of multi-agent tasks, specifically handling asynchronous generators. solve?
Which technical concepts are associated with Graceful shutdown of multi-agent tasks, specifically handling asynchronous generators.?
Are there startups building around Graceful shutdown of multi-agent tasks, specifically handling asynchronous generators.?
Engagement Signals
Cross-Market Term Frequency
Quantifies the cross-market adoption of foundational terms like RuntimeError: aclose(): asynchronous generator is already running and multi-agent task scheduling (scheduler) by tracking occurrence frequency across active SaaS architectures and enterprise developer debates.
SaaS Metrics