Commit ccdb24a
committed
fix: add litellm retry with exponential backoff for rate limit errors
- Add `num_retries=3` default to LLMConfig so litellm retries on OpenAI
429 rate limit errors with built-in exponential backoff
- Increase Temporal DEFAULT_RETRY_POLICY from 1 attempt (no retries) to
3 attempts with exponential backoff (1s, 2s, 4s... up to 30s)
This complements the HTTPX connection limit reduction in agentex backend
(scaleapi/scale-agentex#144) to address OpenAI rate limiting under high
concurrent load.1 parent a277f10 commit ccdb24a
File tree
2 files changed
+8
-1
lines changed- src/agentex/lib
- adk/providers/_modules
- types
2 files changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
30 | 36 | | |
31 | 37 | | |
32 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
0 commit comments