Skip to content

Commit

Permalink
Merge pull request kubernetes#86785 from cwdsuzhou/Jan/update_comments
Browse files Browse the repository at this point in the history
update comments of some funs in scheduling_queue
  • Loading branch information
k8s-ci-robot committed Jan 3, 2020
2 parents b3c4c90 + 02e2177 commit 47d5c3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/scheduler/internal/queue/scheduling_queue.go
Expand Up @@ -393,7 +393,7 @@ func (p *PriorityQueue) flushBackoffQCompleted() {
}
}

// flushUnschedulableQLeftover moves pod which stays in unschedulableQ longer than the durationStayUnschedulableQ
// flushUnschedulableQLeftover moves pod which stays in unschedulableQ longer than the unschedulableQTimeInterval
// to activeQ.
func (p *PriorityQueue) flushUnschedulableQLeftover() {
p.lock.Lock()
Expand Down Expand Up @@ -537,8 +537,8 @@ func (p *PriorityQueue) AssignedPodUpdated(pod *v1.Pod) {
p.lock.Unlock()
}

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

0 comments on commit 47d5c3e

Please sign in to comment.