-
Notifications
You must be signed in to change notification settings - Fork 104
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
Refactor JobQueue & JobQueueStatus #5845
Conversation
8769fe5
to
a1126c8
Compare
Codecov Report
@@ Coverage Diff @@
## main #5845 +/- ##
==========================================
- Coverage 86.03% 81.72% -4.31%
==========================================
Files 329 347 +18
Lines 19386 21705 +2319
Branches 0 737 +737
==========================================
+ Hits 16678 17738 +1060
- Misses 2708 3714 +1006
- Partials 0 253 +253
... and 21 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
c962de6
to
63584f9
Compare
src/ert/job_queue/queue.py
Outdated
@@ -131,19 +129,19 @@ def __init__(self, driver: "Driver", max_submit: int = 2): | |||
|
|||
@property | |||
def num_running(self) -> int: | |||
return self._num_running() # type: ignore | |||
return self._num_jobs(JobStatusType.JOB_QUEUE_RUNNING) # type: ignore | |||
|
|||
@property |
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.
Turns out that these are only used in __str__
and __repr__
could we just make those standard instead and remove these?
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.
Can you clarify what you mean with 'standard' in this context?
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 was thinking str the same as repr and repr satisfies https://docs.python.org/3/library/functions.html#repr in a simple way, such as "<JobQueue()>".
fb3af75
to
e7b1742
Compare
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.
👍
dedda37
to
3cff6e9
Compare
Issue
Resolves #my_issue
Approach
Short description of the approach
Pre review checklist
Adding labels helps the maintainers when writing release notes. This is the list of release note labels.