fn backoff_delay(consecutive_failures: u32) -> DurationExpand description
Per-account exponential backoff schedule for usage-probe failures. Doubles each consecutive failure, capped at 10 minutes. The 60 s poll loop ticks ~once a minute; without backoff, a transient per-IP /usage 429 would persist across every cycle for as long as Anthropic kept rate-limiting, preventing any account from accumulating fresh usage data.
| consecutive | delay |
|---|---|
| 1 | 30 s |
| 2 | 1 min |
| 3 | 2 min |
| 4 | 4 min |
| 5 | 8 min |
| 6+ | 10 min (cap) |