Repository navigation
Commit 7f7d24a
committed
fix(run-engine): treat delay=0 as immediate retry, not no-retry
calculateNextRetryDelay() returns undefined when retries are exhausted
and a number (including 0) when a retry should happen. The !delay guard
was coercing 0 to false, causing runs configured with an immediate retry
(delay of 0ms) to be treated as having no retries left and failed
prematurely.
Switch to explicit undefined checks in both the OOM retry path and the
general retry path.1 parent 185d564 commit 7f7d24a
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| |||
0 commit comments