You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Agent-to-agent HTTP calls in agent_client.py currently have zero retries and no circuit breaking. When an agent is unhealthy or overloaded, callers wait up to 15 minutes before failing, causing cascading timeouts across the fleet. This is the single biggest reliability issue at scale.
Solution
Drop-in two well-established libraries:
pybreaker — Per-agent circuit breakers. After N failures in M seconds, short-circuit all calls to that agent (immediate CircuitBreakerError instead of 15-min timeout). Self-heals after cooldown period.
tenacity — Exponential backoff retries for transient failures (connection errors, timeouts). Combines with circuit breaker: retry transient issues, stop retrying when agent is truly down.
Scope
Add pybreaker and tenacity to backend dependencies
Create per-agent circuit breaker registry in agent_client.py
Activity
feat(reliability): add circuit breaker, retry, and connection pooling…
feat(reliability): add circuit breaker, retry, and connection pooling…