Skip to content

Commit 5e67dec

Browse files
sbryngelsonclaude
andcommitted
ci: remove unreachable job_id guard after retry_sbatch
Under set -e, retry_sbatch returning 1 exits the script immediately. The if [ -z "$job_id" ] block was never reachable. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ecd2b22 commit 5e67dec

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

.github/scripts/submit-slurm-job.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,6 @@ EOT
197197
job_id=$(retry_sbatch "$_sbatch_script")
198198
unset _sbatch_script
199199

200-
if [ -z "$job_id" ]; then
201-
echo "ERROR: Failed to submit job."
202-
exit 1
203-
fi
204-
205200
echo "Submitted batch job $job_id"
206201
echo "$job_id" > "$id_file"
207202
echo "Job ID written to $id_file"

0 commit comments

Comments
 (0)