diff --git a/src/ert/scheduler/job.py b/src/ert/scheduler/job.py index a660dbf97f8..f60727e533c 100644 --- a/src/ert/scheduler/job.py +++ b/src/ert/scheduler/job.py @@ -69,6 +69,7 @@ async def __call__( retries = 0 retry: bool = True while retry: + retry = False await sem.acquire() try: await self._send(State.SUBMITTING) @@ -87,14 +88,12 @@ async def __call__( == LoadStatus.LOAD_SUCCESSFUL ): await self._send(State.COMPLETED) - retry = False else: await self._send(State.FAILED) retries += 1 retry = retries < self._scheduler._max_submit except asyncio.CancelledError: - retry = False await self._send(State.ABORTING) await self.driver.kill(self.iens)