mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #86785 from cwdsuzhou/Jan/update_comments
update comments of some funs in scheduling_queue
This commit is contained in:
		@@ -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()
 | 
			
		||||
@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user