Commit 48ac008
fix(_retry): add RESOURCE_EXHAUSTED to default retryable codes (#96)
Rate-limited reads are rejected (not applied) so retrying is safe.
Adds RESOURCE_EXHAUSTED alongside UNAVAILABLE and DEADLINE_EXCEEDED in
the default retryable_codes tuple. Updates test_retry_config_defaults
and adds test_retry_on_resource_exhausted.
Closes #59
Co-authored-by: Claude <noreply@anthropic.com>1 parent b2cdf36 commit 48ac008
2 files changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
67 | 79 | | |
68 | 80 | | |
69 | 81 | | |
| |||
0 commit comments