-
Notifications
You must be signed in to change notification settings - Fork 970
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
Added job's MinResource check once job is poped from queue #3055
Added job's MinResource check once job is poped from queue #3055
Conversation
This will save time Signed-off-by: Iyengar, Srikanth <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold |
Hey @lowang-bh can you review this PR ? |
hey @lowang-bh can you review this pr ? |
I think you can first get job's minResource, and use compare function in the lib. |
/assign |
Signed-off-by: Iyengar, Srikanth <[email protected]>
/test all |
@srikanth-iyengar: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@lowang-bh will this work? jobMinResource := job.GetMinResources()
queueAllocatedResource := api.NewResource(queue.Queue.Status.Allocated)
queueCapability := api.NewResource(queue.Queue.Spec.Capability)
if jobMinResource.Add(queueAllocatedResource).Less(queueCapability, api.Zero) {
klog.V(4).Infof("Queue <%s> is overused when considering job <%s>, ignore it.", queue.Name, job.Name)
continue
} |
Hey @lowang-bh Can you check on the changes ? |
How about first to pick some |
Yeah, Got it thanks for suggestions, I guess it will really help me |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
fix #3047