Skip to content

Commit ce377ef

Browse files
committed
fix: improve logs\
1 parent 49135d6 commit ce377ef

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/scheduler/backend/queue/scheduling_queue.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,13 +419,16 @@ func (p *PriorityQueue) isPodWorthRequeuing(logger klog.Logger, pInfo *framework
419419
if newObj != nil {
420420
if pod, ok := newObj.(*v1.Pod); !ok || pod.UID != pInfo.Pod.UID {
421421
// This wildcard event is not for this Pod.
422+
if ok {
423+
logger.V(6).Info("Not worth requeuing because the event is wildcard, but for another pod", "pod", klog.KObj(pInfo.Pod), "event", event.Label(), "newObj", klog.KObj(pod))
424+
}
422425
return queueSkip
423426
}
424427
}
425428

426429
// If the wildcard event is special one as someone wants to force all Pods to move to activeQ/backoffQ.
427430
// We return queueAfterBackoff in this case, while resetting all blocked plugins.
428-
logger.V(6).Info("Worth requeuing because the event is wildcard", "pod", klog.KObj(pInfo.Pod))
431+
logger.V(6).Info("Worth requeuing because the event is wildcard", "pod", klog.KObj(pInfo.Pod), "event", event.Label())
429432
return queueAfterBackoff
430433
}
431434

0 commit comments

Comments
 (0)