Skip to content

Commit

Permalink
Do not fail if squeue fails while trying to retrieve job pending re…
Browse files Browse the repository at this point in the history
…asons
  • Loading branch information
vkarak committed Feb 22, 2024
1 parent 972ffea commit 64a3e7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reframe/core/schedulers/slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ def _cancel_if_blocked(self, job, reasons=None):
return

if not reasons:
completed = _run_strict('squeue -h -j %s -o %%r' % job.jobid)
completed = osext.run_command('squeue -h -j %s -o %%r' % job.jobid)

Check warning on line 485 in reframe/core/schedulers/slurm.py

View check run for this annotation

Codecov / codecov/patch

reframe/core/schedulers/slurm.py#L485

Added line #L485 was not covered by tests
reasons = completed.stdout.splitlines()
if not reasons:
# Can't retrieve job's state. Perhaps it has finished already
Expand Down

0 comments on commit 64a3e7a

Please sign in to comment.