Skip to content

Commit

Permalink
Merge pull request #1653 from buildtesters/timeout_and_suspended_jobs
Browse files Browse the repository at this point in the history
add TIMEOUT and OUT_OF_MEMORY states for job completion in slurm jobs
  • Loading branch information
shahzebsiddiqui authored Nov 9, 2023
2 parents ddf8744 + 0c2ad01 commit a93dfc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildtest/scheduler/slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def is_complete(self):
"""If job is complete return ``True`` otherwise return ``False``. Slurm will report ``COMPLETED``
for job state."""

return self._state in ["COMPLETED", "FAILED"]
return self._state in ["COMPLETED", "FAILED", "TIMEOUT", "OUT_OF_MEMORY"]

def is_failed(self):
"""If job failed return ``True`` otherwise return ``False``. Slurm will report ``FAILED``
Expand Down

0 comments on commit a93dfc3

Please sign in to comment.