-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for SUBMIT_SLEEP #6611
Conversation
src/ert/job_queue/queue.py
Outdated
@@ -159,6 +159,12 @@ def count_running(self) -> int: | |||
for real in self._realizations | |||
) | |||
|
|||
def count_submitted(self) -> int: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now you can do self.count_realization_state(RealizationState.SUBMITTED)
I think you need to rebase |
8eaea34
to
ce7c01a
Compare
Should be ready now, with tests |
src/ert/job_queue/queue.py
Outdated
+ self.count_realization_state(RealizationState.SUBMITTED) | ||
< self.max_running() | ||
): | ||
if datetime.datetime.now() - time_of_last_submission >= submit_delta: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought that this check is not required if we do await asyncio.sleep(self._queue_config.submit_sleep)
or?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed now
ce7c01a
to
7995706
Compare
7995706
to
ebc23e0
Compare
Written assuming there will be a global option to set SUBMIT_SLEEP, but will currently pick from the selected queue system.
ebc23e0
to
28fba68
Compare
Written assuming there will be a global option to set SUBMIT_SLEEP, but will currently pick from the selected queue system.