From 64a3e7ac28f15f52c38f9815ac962e36e874b47f Mon Sep 17 00:00:00 2001 From: Vasileios Karakasis Date: Thu, 22 Feb 2024 18:38:13 +0100 Subject: [PATCH] Do not fail if `squeue` fails while trying to retrieve job pending reasons --- reframe/core/schedulers/slurm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reframe/core/schedulers/slurm.py b/reframe/core/schedulers/slurm.py index c741f0fc70..1f314f874f 100644 --- a/reframe/core/schedulers/slurm.py +++ b/reframe/core/schedulers/slurm.py @@ -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) reasons = completed.stdout.splitlines() if not reasons: # Can't retrieve job's state. Perhaps it has finished already