Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions reframe/core/schedulers/slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,9 +717,11 @@ def poll(self, *jobs):
# Use ',' to join nodes to be consistent with Slurm syntax
job._nodespec = ','.join(m.group('nodespec') for m in job_match)

self._cancel_if_blocked(
jobs, {jobid: s.group('reason') for jobid, s in jobinfo.items()}
)
pending_reasons = {}
for jobid, states in jobinfo.items():
pending_reasons[jobid] = [s.group('reason') for s in states]

self._cancel_if_blocked(jobs, pending_reasons)
self._cancel_if_pending_too_long(jobs)


Expand Down
Loading