Skip to content

Commit

Permalink
more progress
Browse files Browse the repository at this point in the history
  • Loading branch information
xjules committed Nov 8, 2023
1 parent 72929d0 commit 4975e67
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ert/job_queue/job_queue_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def _job_monitor(
self._handle_end_status(driver, pool_sema, end_status, max_submit)

def _poll_until_done(self, driver: "Driver") -> JobStatus:
current_status = self._poll_queue_status(driver)
current_status = self.refresh_status(driver)
backoff = _BackoffFunction()
# in the following loop, we increase the sleep time between loop iterations as
# long running realizations do not change state often, and too frequent querying
Expand All @@ -231,7 +231,7 @@ def _poll_until_done(self, driver: "Driver") -> JobStatus:
self._kill(driver)
self._log_kill_thread_stopping_status()

current_status = self._poll_queue_status(driver)
current_status = self.refresh_status(driver)
self._end_time = time.time()
return current_status

Expand Down Expand Up @@ -328,7 +328,8 @@ def _transition_status(
self.thread_status = thread_status

def _kill(self, driver: "Driver") -> None:
_kill(self, driver)
# _kill(self, driver)
driver.kill(self)
self._tried_killing += 1

def run(self, driver: "Driver", pool_sema: Semaphore, max_submit: int = 2) -> None:
Expand Down
3 changes: 3 additions & 0 deletions src/ert/job_queue/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ def get_status(self, node: JobQueueNode) -> JobStatus:
def submit(self, node: JobQueueNode) -> SubmitStatus:
return SubmitStatus.OK

def kill(self, node: JobQueueNode) -> None:
pass


class JobQueue:
# TYPE_NAME = "job_queue"
Expand Down

0 comments on commit 4975e67

Please sign in to comment.