mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #103864 from yuanchen8911/master
Fix inaccurate comments in scheduler_queue.go
This commit is contained in:
commit
2d08fd4f56
@ -48,8 +48,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// If the pod stays in unschedulableQ longer than the unschedulableQTimeInterval,
|
// If a pod stays in unschedulableQ longer than unschedulableQTimeInterval,
|
||||||
// the pod will be moved from unschedulableQ to activeQ.
|
// the pod will be moved from unschedulableQ to backoffQ or activeQ.
|
||||||
unschedulableQTimeInterval = 60 * time.Second
|
unschedulableQTimeInterval = 60 * time.Second
|
||||||
|
|
||||||
queueClosed = "scheduling queue is closed"
|
queueClosed = "scheduling queue is closed"
|
||||||
@ -434,8 +434,8 @@ func (p *PriorityQueue) flushBackoffQCompleted() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// flushUnschedulableQLeftover moves pod which stays in unschedulableQ longer than the unschedulableQTimeInterval
|
// flushUnschedulableQLeftover moves pods which stay in unschedulableQ longer than unschedulableQTimeInterval
|
||||||
// to activeQ.
|
// to backoffQ or activeQ.
|
||||||
func (p *PriorityQueue) flushUnschedulableQLeftover() {
|
func (p *PriorityQueue) flushUnschedulableQLeftover() {
|
||||||
p.lock.Lock()
|
p.lock.Lock()
|
||||||
defer p.lock.Unlock()
|
defer p.lock.Unlock()
|
||||||
|
Loading…
Reference in New Issue
Block a user