Commit 269ea9e
committed
fix: reset restartAttempt in onReady instead of onStarted
Move the restartAttempt counter reset from the onStarted callback (fires
when the process gets a PID) to the onReady callback (fires when the
health check passes). This ensures exponential backoff is maintained for
backends that repeatedly crash during initialization.1 parent 6d22abb commit 269ea9e
1 file changed
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | 327 | | |
332 | 328 | | |
333 | 329 | | |
334 | 330 | | |
335 | 331 | | |
336 | 332 | | |
| 333 | + | |
337 | 334 | | |
338 | 335 | | |
339 | 336 | | |
| |||
0 commit comments