Commit 2731a42
authored
Correct retry_intervals exponential backoff documentation (#1014)
The exponential_backoff? docstring claimed retries stop ("before giving
up") after the last configured interval. They do not: once the intervals
are exhausted, get_interval keeps returning the last interval, so the
message is retried indefinitely at that cadence. SQS's redrive policy
(maxReceiveCount) is what actually moves an exhausted message to a
dead-letter queue.
Corrected the docstring to describe the real behavior and added a spec
pinning that far-later attempts keep reusing the last interval, so the
docs and behavior stay in sync.
Signed-off-by: Maciej Mensfeld <maciej@mensfeld.pl>1 parent 8cd8f5e commit 2731a42
3 files changed
Lines changed: 22 additions & 1 deletion
File tree
- lib/shoryuken
- spec/lib/shoryuken/middleware/server
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
3 | 9 | | |
4 | 10 | | |
5 | 11 | | |
6 | 12 | | |
7 | 13 | | |
8 | 14 | | |
| 15 | + | |
9 | 16 | | |
10 | 17 | | |
11 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
228 | 232 | | |
229 | 233 | | |
230 | 234 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
95 | 105 | | |
96 | 106 | | |
97 | 107 | | |
| |||
0 commit comments