From a70e7968325098f40bf9011b6a3e024d0629357d Mon Sep 17 00:00:00 2001 From: Eirini Koutsaniti Date: Mon, 29 Jun 2026 11:23:29 +0200 Subject: [PATCH] Set default pending reasons for the pending jobs of Slurm backend Signed-off-by: Eirini Koutsaniti --- 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 bd21d68d2..5892a936f 100644 --- a/reframe/core/schedulers/slurm.py +++ b/reframe/core/schedulers/slurm.py @@ -603,7 +603,7 @@ def _cancel_if_blocked(self, jobs, reasons=None): # pending_reasons is a list to accommodate for job arrays pending_job = pending_jobs[jobid] - pending_reasons[pending_job].setdefault([]) + pending_reasons.setdefault(pending_job, []) pending_reasons[pending_job].append(reason) cancel_joblist = {}