-
Notifications
You must be signed in to change notification settings - Fork 357
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
fix: job queue's allocated slots should be correct after restarts #9461
Conversation
✅ Deploy Preview for determined-ui canceled.
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9461 +/- ##
==========================================
+ Coverage 49.00% 49.03% +0.03%
==========================================
Files 1233 1233
Lines 159389 159392 +3
Branches 2778 2778
==========================================
+ Hits 78102 78158 +56
+ Misses 81113 81060 -53
Partials 174 174
Flags with carried forward coverage won't be shown. Click here to find out more.
|
7ffdb71
to
8dbbe1b
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.
LGTM!
@@ -766,6 +766,115 @@ func TestReattach(t *testing.T) { | |||
} | |||
} | |||
|
|||
func TestJobQueueReattach(t *testing.T) { |
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.
Nice!
Description
What it says on the tin.
..but I also renamed
Schedule
toAdmit
because it's not scheduling, just deciding to admit tasks to Kubernetes to be scheduled (and from that,reschedule
is nowtryAdmitPendingTasks
). My test had a call to schedule followed by an assertion that the job queue's state said we were queued. The name couldn't stand any longer lol.Test Plan
Has automated testing.
Checklist
docs/release-notes/
.See Release Note for details.