Revert "Optimization on running prePreEnqueuePlugins before adding pods into activeQ"

This reverts commit c01fa8279d.
This commit is contained in:
Kensei Nakada
2023-04-11 05:13:33 +00:00
parent 5463fcd7dd
commit 2bed67d0f1
2 changed files with 1 additions and 47 deletions

View File

@@ -553,9 +553,7 @@ func (p *PriorityQueue) flushBackoffQCompleted() {
klog.ErrorS(err, "Unable to pop pod from backoff queue despite backoff completion", "pod", klog.KObj(pod))
break
}
if err := p.activeQ.Add(pInfo); err != nil {
klog.ErrorS(err, "Error adding pod to the active queue", "pod", klog.KObj(pInfo.Pod))
} else {
if added, _ := p.addToActiveQ(pInfo); added {
klog.V(5).InfoS("Pod moved to an internal scheduling queue", "pod", klog.KObj(pod), "event", BackoffComplete, "queue", activeQName)
metrics.SchedulerQueueIncomingPods.WithLabelValues("active", BackoffComplete).Inc()
activated = true