Fix scheduler misc

This commit is contained in:
astraw99
2022-09-03 23:37:59 +08:00
parent e7192a4955
commit ee24513e47
4 changed files with 4 additions and 4 deletions

View File

@@ -447,8 +447,7 @@ func (p *PriorityQueue) flushBackoffQCompleted() {
break
}
pod := rawPodInfo.(*framework.QueuedPodInfo).Pod
boTime := p.getBackoffTime(rawPodInfo.(*framework.QueuedPodInfo))
if boTime.After(p.clock.Now()) {
if p.isPodBackingoff(rawPodInfo.(*framework.QueuedPodInfo)) {
break
}
_, err := p.podBackoffQ.Pop()