Skip to content

Commit 02e2177

Browse files
committed
update comments of some funs in scheduling_queue
1 parent 82c7c86 commit 02e2177

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/scheduler/internal/queue/scheduling_queue.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ func (p *PriorityQueue) flushBackoffQCompleted() {
393393
}
394394
}
395395

396-
// flushUnschedulableQLeftover moves pod which stays in unschedulableQ longer than the durationStayUnschedulableQ
396+
// flushUnschedulableQLeftover moves pod which stays in unschedulableQ longer than the unschedulableQTimeInterval
397397
// to activeQ.
398398
func (p *PriorityQueue) flushUnschedulableQLeftover() {
399399
p.lock.Lock()
@@ -537,8 +537,8 @@ func (p *PriorityQueue) AssignedPodUpdated(pod *v1.Pod) {
537537
p.lock.Unlock()
538538
}
539539

540-
// MoveAllToActiveOrBackoffQueue moves all pods from unschedulableQ to activeQ. This
541-
// function adds all pods and then signals the condition variable to ensure that
540+
// MoveAllToActiveOrBackoffQueue moves all pods from unschedulableQ to activeQ or backoffQ.
541+
// This function adds all pods and then signals the condition variable to ensure that
542542
// if Pop() is waiting for an item, it receives it after all the pods are in the
543543
// queue and the head is the highest priority pod.
544544
func (p *PriorityQueue) MoveAllToActiveOrBackoffQueue(event string) {

0 commit comments

Comments
 (0)