Commit 74d1117
refactor: chain-agnostic MIN_RETRY_WAIT_SECONDS for Step Functions retries
Rename MIN_RETRY_WAIT_SECONDS_TEMPO to MIN_RETRY_WAIT_SECONDS, drop the
Tempo-only branch in calculateDutchRetryWaitSeconds, and apply the floor
to all chains. The floor exists to prevent Step Functions Wait state from
rounding sub-second block times to zero — that risk applies to any future
chain with sub-second blocks, not just Tempo. Lowered the floor value
from 2s to 1s (the minimum Step Functions can represent).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent afe5d4f commit 74d1117
2 files changed
Lines changed: 20 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
371 | 362 | | |
372 | | - | |
| 363 | + | |
373 | 364 | | |
374 | 365 | | |
375 | 366 | | |
| |||
383 | 374 | | |
384 | 375 | | |
385 | 376 | | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
| 377 | + | |
390 | 378 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
40 | | - | |
| 39 | + | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 44 | + | |
| 45 | + | |
49 | 46 | | |
50 | 47 | | |
51 | 48 | | |
52 | 49 | | |
53 | 50 | | |
54 | | - | |
| 51 | + | |
55 | 52 | | |
56 | 53 | | |
57 | 54 | | |
| |||
0 commit comments