Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for UntilWithContext (0.21 sec)

  1. pkg/scheduler/scheduler.go

    	// If there are no new pods to schedule, it will be hanging there
    	// and if done in this goroutine it will be blocking closing
    	// SchedulingQueue, in effect causing a deadlock on shutdown.
    	go wait.UntilWithContext(ctx, sched.ScheduleOne, 0)
    
    	<-ctx.Done()
    	sched.SchedulingQueue.Close()
    
    	// If the plugins satisfy the io.Closer interface, they are closed.
    	err := sched.Profiles.Close()
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  2. pkg/controller/statefulset/stateful_set.go

    	if !cache.WaitForNamedCacheSync("stateful set", ctx.Done(), ssc.podListerSynced, ssc.setListerSynced, ssc.pvcListerSynced, ssc.revListerSynced) {
    		return
    	}
    
    	for i := 0; i < workers; i++ {
    		go wait.UntilWithContext(ctx, ssc.worker, time.Second)
    	}
    
    	<-ctx.Done()
    }
    
    // addPod adds the statefulset for the pod to the sync queue
    func (ssc *StatefulSetController) addPod(logger klog.Logger, obj interface{}) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  3. pkg/controller/job/job_controller.go

    	if !cache.WaitForNamedCacheSync("job", ctx.Done(), jm.podStoreSynced, jm.jobStoreSynced) {
    		return
    	}
    
    	for i := 0; i < workers; i++ {
    		go wait.UntilWithContext(ctx, jm.worker, time.Second)
    	}
    
    	go wait.UntilWithContext(ctx, jm.orphanWorker, time.Second)
    
    	<-ctx.Done()
    }
    
    // getPodJobs returns a list of Jobs that potentially match a Pod.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
Back to top