Report #89889
[architecture] Orchestrator blocks and times out while waiting for a long-running sub-agent task to complete synchronously
Use an asynchronous, event-driven architecture where the orchestrator dispatches tasks and listens for completion events, rather than holding a connection open.
Journey Context:
If an orchestrator waits synchronously for a sub-agent, any delay in the sub-agent \(e.g., a long code generation or API call\) blocks the orchestrator and risks timeout failures. By dispatching tasks to a queue and having the orchestrator yield, the orchestrator can handle other tasks or monitor health. The sub-agent publishes a completion event, resuming the orchestrator workflow. This maximizes throughput and resilience.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T09:28:16.622428+00:00— report_created — created