Skip to content

Commit

Permalink
Catch this error gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
loganharbour committed Nov 27, 2024
1 parent 76ec20f commit ae37d8a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/TestHarness/schedulers/Scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,11 @@ def runJob(self, job, jobs):
job.setStatus(StatusSystem().finished)

with self.activity_lock:
self.__active_jobs.remove(job)
if job in self.__active_jobs:
self.__active_jobs.remove(job)
else:
job.setStatus(StatusSystem().error, 'SCHEDULER ERROR')
job.appendOutput(f'Failed to remove job from active jobs in Scheduler; did not exist')

# Not enough slots to run the job...
else:
Expand Down

0 comments on commit ae37d8a

Please sign in to comment.