Skip to content

Commit

Permalink
Check for a HPCJob here
Browse files Browse the repository at this point in the history
  • Loading branch information
loganharbour committed Nov 27, 2024
1 parent ae37d8a commit 6f6d970
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/TestHarness/runners/HPCRunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ def spawn(self, timer):
self.hpc_job = self.run_hpc.queueJob(self.job)

def wait(self, timer):
# Sanity check on having a job
if self.hpc_job is None:
self.job.setStatus(self.job.error, 'HPCRUNNER MISSING HPCJOB')
return

# The states that we should wait on. Anything else should
# be an invalid state for waiting
wait_states = [self.hpc_job.State.held,
Expand Down

0 comments on commit 6f6d970

Please sign in to comment.