Skip to content

Commit

Permalink
Fix bug causing FinishedEvent to be ignored
Browse files Browse the repository at this point in the history
Only applies to new scheduler and non-local drivers
  • Loading branch information
berland committed Feb 12, 2024
1 parent a1a2bc3 commit 942555d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/ert/scheduler/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,11 @@ async def _process_event_queue(self) -> None:
while True:
event = await self.driver.event_queue.get()
job = self._jobs[event.iens]
if not job.started.is_set():
# Any event implies the job has at least started
job.started.set()
elif isinstance(event, FinishedEvent):

# Any event implies the job has at least started
job.started.set()

if isinstance(event, FinishedEvent):
if event.aborted:
job.returncode.cancel()
else:
Expand Down

0 comments on commit 942555d

Please sign in to comment.