Skip to content
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

resourcemanager: avoid to schedule when no task is in the pool #41095

Merged
merged 10 commits into from
Feb 6, 2023
3 changes: 3 additions & 0 deletions resourcemanager/schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ func (r *ResourceManager) schedule() {
}

func (r *ResourceManager) schedulePool(pool *util.PoolContainer) scheduler.Command {
if pool.Pool.Running() == 0 {
return scheduler.Hold
}
for _, sch := range r.scheduler {
cmd := sch.Tune(pool.Component, pool.Pool)
switch cmd {
Expand Down