Commit 1eb855c
ci: fix monitor hang when SLURM job is preempted and requeued
When a job is preempted+requeued, sacct -X reports PREEMPTED for the
original attempt even after the requeued run completes. The monitor
excluded PREEMPTED from terminal states (correct for active requeues)
but never detected the requeued completion via sacct, causing it to
loop on state=PREEMPTED for hours until the GHA timeout killed it.
Fix: when sacct -X returns PREEMPTED, also query without -X to find
the requeued run's terminal state (COMPLETED, FAILED, etc).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 25a074e commit 1eb855c
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
55 | 64 | | |
56 | 65 | | |
57 | 66 | | |
| |||
0 commit comments