Skip to content

Commit

Permalink
Rename _execute -> _submit_and_run_once
Browse files Browse the repository at this point in the history
  • Loading branch information
xjules committed Dec 15, 2023
1 parent e1c49c0 commit 3c5e075
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ert/scheduler/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3c5e075

Please sign in to comment.