Skip to content

Commit

Permalink
Also handle "CANCELLED+" state
Browse files Browse the repository at this point in the history
  • Loading branch information
TorecLuik committed Apr 3, 2024
1 parent 359a820 commit 756ea35
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion biomero/slurm_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,14 @@ def wait_for_completion(self, slurmClient, omeroConn) -> str:
Returns:
str: The final state of the Slurm job.
"""
while self.job_state not in ("FAILED", "COMPLETED", "CANCELLED", "TIMEOUT"):
while self.job_state not in ("FAILED",
"COMPLETED",
"CANCELLED",
"TIMEOUT",
"FAILED+",
"COMPLETED+",
"CANCELLED+",
"TIMEOUT+"):
job_status_dict, poll_result = slurmClient.check_job_status(
[self.job_id])
if not poll_result.ok:
Expand Down

0 comments on commit 756ea35

Please sign in to comment.