多代理广播超时时,优先把 sessions_send 改成批次并发+退避重试
针对 nested lane 串行瓶颈(maxConcurrent=1)导致的级联超时,社区给出了可执行的广播降压方案,适合 5-20 代理团队。
GITHUBDiscovered 2026-02-12Author sprfrkr
Prerequisites
- You are operating multi-agent fan-out workflows using sessions_send.
- Gateway logs are available for observing nested lane queue behavior.
Steps
- Measure current fan-out latency and timeout rate for one broadcast run.
- Replace single-shot N-way fan-out with batched sends (e.g., batch size 2-3).
- Add per-batch exponential backoff retry for timeout results.
- Add queue-size and wall-clock guardrails to stop overload cascades early.
- Track successful deliveries separately from timeout responses for reconciliation.
Commands
openclaw gateway statusopenclaw helpgit log --oneline -n 5Verify
Under the same recipient count, timeout ratio drops and end-to-end broadcast time remains within SLO.
Caveats
- Issue reports lane concurrency as hardcoded; config-level nested concurrency control still needs upstream verification(需验证).
- Timeout may still occur when destination sessions are overloaded; retries must be bounded.
Source attribution
This tip is aggregated from community/public sources and preserved with attribution.
Open original source ↗