Commit f8e2c6c
scaleset: reap timed-out runners stuck in failed status
reapTimedOutRunners only considered runners in pending/installing
RunnerStatus as eligible for reaping. A runner whose agent reports a
failure (RunnerStatus set to failed via AddInstanceStatusMessage) was
never pending/installing again, and would never register as idle/active
in github either, so it was permanently excluded from this check and
leaked forever (instance never transitioned to pending_delete).
Allow RunnerFailed through the same eligibility check. Downstream
logic still requires the runner be missing from github or reported
offline there before reaping, unchanged.1 parent ca1b910 commit f8e2c6c
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
398 | | - | |
399 | | - | |
| 398 | + | |
| 399 | + | |
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
| |||
0 commit comments