diff --git a/python/TestHarness/schedulers/Scheduler.py b/python/TestHarness/schedulers/Scheduler.py index b34832c430a1..6c76385915c3 100644 --- a/python/TestHarness/schedulers/Scheduler.py +++ b/python/TestHarness/schedulers/Scheduler.py @@ -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: