Commit fb6101d
ci: treat PREEMPTED as non-terminal so --requeue jobs keep being monitored
With #SBATCH --requeue, a preempted SLURM job restarts under the same job
ID (PREEMPTED -> PENDING -> RUNNING). Previously PREEMPTED was listed as a
terminal state, causing the monitor to exit immediately and report failure,
discarding the requeue.
Remove PREEMPTED from is_terminal_state() and add it to the PENDING branch
of the pre-output-file wait loop so the monitor keeps polling through the
preemption-requeue cycle and resumes streaming once the job restarts.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent ffb43f7 commit fb6101d
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | | - | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| |||
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
83 | | - | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| |||
0 commit comments