Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for runWorker (0.12 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/controller/controller.go

    		defer d.queue.ShutDown()
    		<-ctx.Done()
    	}()
    
    	wg.Add(1)
    	go func() {
    		defer utilruntime.HandleCrash()
    		defer wg.Done()
    		d.runWorker(ctx)
    	}()
    
    	// this function polls changes in the encryption config file by placing a dummy key in the queue.
    	// the 'runWorker' function then picks up this dummy key and processes the changes.
    	// the goroutine terminates when 'ctx' is canceled.
    	_ = wait.PollUntilContextCancel(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/establish/establishing_controller.go

    	if !cache.WaitForCacheSync(stopCh, ec.crdSynced) {
    		return
    	}
    
    	// only start one worker thread since its a slow moving API
    	go wait.Until(ec.runWorker, time.Second, stopCh)
    
    	<-stopCh
    }
    
    func (ec *EstablishingController) runWorker() {
    	for ec.processNextWorkItem() {
    	}
    }
    
    // processNextWorkItem deals with one key off the queue.
    // It returns false when it's time to quit.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. pkg/controller/validatingadmissionpolicystatus/controller.go

    	if !cache.WaitForNamedCacheSync(ControllerName, ctx.Done(), c.policySynced) {
    		return
    	}
    
    	defer c.policyQueue.ShutDown()
    	for i := 0; i < workers; i++ {
    		go wait.UntilWithContext(ctx, c.runWorker, time.Second)
    	}
    
    	<-ctx.Done()
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  4. pkg/controlplane/controller/crdregistration/crdregistration_controller.go

    	// start up your worker threads based on workers.  Some controllers have multiple kinds of workers
    	for i := 0; i < workers; i++ {
    		// runWorker will loop until "something bad" happens.  The .Until will then rekick the worker
    		// after one second
    		go wait.Until(c.runWorker, time.Second, stopCh)
    	}
    
    	// wait until we're told to stop
    	<-stopCh
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  5. pkg/controlplane/controller/legacytokentracking/controller.go

    	if !cache.WaitForNamedCacheSync("configmaps", stopCh, c.configMapSynced) {
    		return
    	}
    
    	go wait.Until(c.runWorker, time.Second, stopCh)
    
    	c.queue.Add(queueKey)
    
    	<-stopCh
    	klog.Info("Ending legacy_token_tracking_controller")
    }
    
    func (c *Controller) runWorker() {
    	for c.processNext() {
    	}
    }
    
    func (c *Controller) processNext() bool {
    	key, quit := c.queue.Get()
    	if quit {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. platforms/software/antlr/src/main/java/org/gradle/api/plugins/antlr/internal/AntlrWorkerManager.java

    import org.gradle.process.internal.worker.SingleRequestWorkerProcessBuilder;
    import org.gradle.process.internal.worker.WorkerProcessFactory;
    
    import java.io.File;
    
    public class AntlrWorkerManager {
    
        public AntlrResult runWorker(File workingDir, WorkerProcessFactory workerFactory, FileCollection antlrClasspath, AntlrSpec spec) {
    
            RequestHandler<AntlrSpec, AntlrResult> antlrWorker = createWorkerProcess(workingDir, workerFactory, antlrClasspath, spec);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 14:52:10 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. pkg/controller/volume/pvprotection/pv_protection_controller.go

    	if !cache.WaitForNamedCacheSync("PV protection", ctx.Done(), c.pvListerSynced) {
    		return
    	}
    
    	for i := 0; i < workers; i++ {
    		go wait.UntilWithContext(ctx, c.runWorker, time.Second)
    	}
    
    	<-ctx.Done()
    }
    
    func (c *Controller) runWorker(ctx context.Context) {
    	for c.processNextWorkItem(ctx) {
    	}
    }
    
    // processNextWorkItem deals with one pvcKey off the queue.  It returns false when it's time to quit.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. pkg/controller/certificates/rootcacertpublisher/publisher.go

    	if !cache.WaitForNamedCacheSync("crt configmap", ctx.Done(), c.cmListerSynced) {
    		return
    	}
    
    	for i := 0; i < workers; i++ {
    		go wait.UntilWithContext(ctx, c.runWorker, time.Second)
    	}
    
    	<-ctx.Done()
    }
    
    func (c *Publisher) configMapDeleted(obj interface{}) {
    	cm, err := convertToCM(obj)
    	if err != nil {
    		utilruntime.HandleError(err)
    		return
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  9. pkg/controller/serviceaccount/serviceaccounts_controller.go

    	if !cache.WaitForNamedCacheSync("service account", ctx.Done(), c.saListerSynced, c.nsListerSynced) {
    		return
    	}
    
    	for i := 0; i < workers; i++ {
    		go wait.UntilWithContext(ctx, c.runWorker, time.Second)
    	}
    
    	<-ctx.Done()
    }
    
    // serviceAccountDeleted reacts to a ServiceAccount deletion by recreating a default ServiceAccount in the namespace if needed
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/apiapproval/apiapproval_controller.go

    	if !cache.WaitForCacheSync(stopCh, c.crdSynced) {
    		return
    	}
    
    	for i := 0; i < workers; i++ {
    		go wait.Until(c.runWorker, time.Second, stopCh)
    	}
    
    	<-stopCh
    }
    
    func (c *KubernetesAPIApprovalPolicyConformantConditionController) runWorker() {
    	for c.processNextWorkItem() {
    	}
    }
    
    // processNextWorkItem deals with one key off the queue.  It returns false when it's time to quit.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top