-
Notifications
You must be signed in to change notification settings - Fork 971
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
Process only one task of jobs in reclaim action #629
Comments
I think we should put task back to the queue :) btw, what's your use case for reclaim? |
/area scheduling |
@k82cn, thank you for the quick reply. Another question about reclaim is why we push the if assigned {
queues.Push(queue)
} |
If we did not assign any resource in this loop, that means there's no resource for it; so will not consider it in next loop. |
If Does it make sense to you? |
yes, that makes more sense :) |
fixed by #631 |
I am using reclaim action and notice that it will only process only one task of jobs:
https://github.com/volcano-sh/volcano/blob/master/pkg/scheduler/actions/reclaim/reclaim.go#L107
The above code is to find one task from the
job
and use it to reclaim resources. However, thejob
is not pushed back tojobs
(the priority queue) so it will not be processed again.I wonder if this behavior is by design? If so, why?
Or is it a bug ? We should push the
job
back tojobs
at this line https://github.com/volcano-sh/volcano/blob/master/pkg/scheduler/actions/reclaim/reclaim.go#L198The text was updated successfully, but these errors were encountered: