Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getBackoffTime (0.23 sec)

  1. pkg/scheduler/internal/queue/scheduling_queue.go

    func (p *PriorityQueue) podsCompareBackoffCompleted(podInfo1, podInfo2 interface{}) bool {
    	pInfo1 := podInfo1.(*framework.QueuedPodInfo)
    	pInfo2 := podInfo2.(*framework.QueuedPodInfo)
    	bo1 := p.getBackoffTime(pInfo1)
    	bo2 := p.getBackoffTime(pInfo2)
    	return bo1.Before(bo2)
    }
    
    // newQueuedPodInfo builds a QueuedPodInfo object.
    func (p *PriorityQueue) newQueuedPodInfo(pod *v1.Pod, plugins ...string) *framework.QueuedPodInfo {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 61.4K bytes
    - Viewed (0)
  2. pkg/scheduler/internal/queue/scheduling_queue_test.go

    			if _, ok, _ := q.podBackoffQ.Get(podInfo); !ok {
    				t.Errorf("pod %v is not in the backoff queue", podID)
    			}
    
    			// Check backoff duration.
    			deadline := q.getBackoffTime(podInfo)
    			backoff := deadline.Sub(timestamp)
    			if backoff != step.wantBackoff {
    				t.Errorf("got backoff %s, want %s", backoff, step.wantBackoff)
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 146.9K bytes
    - Viewed (0)
Back to top