Merge pull request #90542 from lixiang233/master

There's no need to set moveRequestCycle and do broadcast twice.
This commit is contained in:
Kubernetes Prow Robot
2020-04-28 12:58:25 -07:00
committed by GitHub

View File

@@ -499,8 +499,6 @@ func (p *PriorityQueue) MoveAllToActiveOrBackoffQueue(event string) {
unschedulablePods = append(unschedulablePods, pInfo)
}
p.movePodsToActiveOrBackoffQueue(unschedulablePods, event)
p.moveRequestCycle = p.schedulingCycle
p.cond.Broadcast()
}
// NOTE: this function assumes lock has been acquired in caller