From 3c5e075a7988adac1362ad66e3cae53b3e248f4e Mon Sep 17 00:00:00 2001 From: Julius Parulek Date: Fri, 15 Dec 2023 10:25:28 +0100 Subject: [PATCH] Rename _execute -> _submit_and_run_once --- src/ert/scheduler/job.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ert/scheduler/job.py b/src/ert/scheduler/job.py index dea4508adb3..d6b0aeef36e 100644 --- a/src/ert/scheduler/job.py +++ b/src/ert/scheduler/job.py @@ -65,7 +65,7 @@ def iens(self) -> int: def driver(self) -> Driver: return self._scheduler.driver - async def _execute(self, sem: asyncio.BoundedSemaphore) -> None: + async def _submit_and_run_once(self, sem: asyncio.BoundedSemaphore) -> None: await sem.acquire() try: await self._send(State.SUBMITTING) @@ -109,7 +109,7 @@ async def __call__( await start.wait() for _ in range(max_submit): - await self._execute(sem) + await self._submit_and_run_once(sem) if self.returncode.done() or self.aborted.is_set(): break