We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25d47bf commit 17307adCopy full SHA for 17307ad
src/cloudai/systems/slurm/slurm_system.py
@@ -761,6 +761,7 @@ def system_installables(self) -> list[Installable]:
761
762
def complete_job(self, job: SlurmJob) -> None:
763
out, _ = self.fetch_command_output(f"sacct -j {job.id} -p --noheader -X --format=NodeList")
764
- nodelist = set(parse_node_list(out.splitlines()[0].strip().replace("|", "")))
+ spec = out.splitlines()[0] if out.splitlines() else out
765
+ nodelist = set(parse_node_list(spec.strip().replace("|", "")))
766
to_unlock = [node for node in self.group_allocated if node.name in nodelist]
767
self.group_allocated.difference_update(to_unlock)
0 commit comments