Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 30 for dequeue1 (0.14 sec)

  1. pilot/pkg/config/kube/gateway/deploymentcontroller.go

    	dc.namespaces.AddEventHandler(controllers.ObjectHandler(func(o controllers.Object) {
    		// TODO: make this more intelligent, checking if something we care about has changed
    		// requeue this namespace
    		for _, gw := range dc.gateways.List(o.GetName(), klabels.Everything()) {
    			dc.queue.AddObject(gw)
    		}
    	}))
    
    	gateways.AddEventHandler(controllers.ObjectHandler(dc.queue.AddObject))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 21:43:20 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/graph/builder/ResolveState.java

        @Nullable
        public NodeState peek() {
            return queue.isEmpty() ? null : queue.getFirst();
        }
    
        public NodeState pop() {
            NodeState next = queue.removeFirst();
            return next.dequeue();
        }
    
        /**
         * Called when a change is made to a configuration node, such that its dependency graph may now be larger than it previously was, and the node should be visited.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 14:19:34 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  3. pkg/scheduler/internal/queue/scheduling_queue.go

    	queueSkip queueingStrategy = iota
    	// queueAfterBackoff indicates that the scheduling queue should requeue the Pod after backoff is completed.
    	queueAfterBackoff
    	// queueImmediately indicates that the scheduling queue should skip backoff and requeue the Pod immediately to activeQ.
    	queueImmediately
    )
    
    // isEventOfInterest returns true if the event is of interest by some plugins.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 61.4K bytes
    - Viewed (0)
  4. pilot/pkg/serviceregistry/kube/controller/pod.go

    	// pod cache if a pod changes IP.
    	IPByPods map[types.NamespacedName]string
    
    	// needResync is map of IP to endpoint namespace/name. This is used to requeue endpoint
    	// events when pod event comes. This typically happens when pod is not available
    	// in podCache when endpoint event comes.
    	needResync         map[string]sets.Set[types.NamespacedName]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/informers.go

    	//
    	// NOTE that we are requeueing namespaces here explicitly to work around
    	// test flakes with the fake kube client in `pkg/kube/client.go` -
    	// because we are using `List()` in the handler, without this requeue,
    	// the fake client will sometimes drop pod events leading to test flakes.
    	//
    	// WaitForCacheSync *helps*, but does not entirely fix this problem
    	s.namespaces = kclient.New[*corev1.Namespace](kubeClient)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:35 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  6. pilot/pkg/xds/discovery.go

    			// This limits the number of pushes that can happen concurrently
    			semaphore <- struct{}{}
    
    			// Get the next proxy to push. This will block if there are no updates required.
    			client, push, shuttingdown := queue.Dequeue()
    			if shuttingdown {
    				return
    			}
    			recordPushTriggers(push.Reason)
    			// Signals that a push is done by reading from the semaphore, allowing another send on it.
    			doneFunc := func() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 20:21:09 UTC 2024
    - 19K bytes
    - Viewed (0)
  7. pkg/controller/endpointslice/endpointslice_controller.go

    	go wait.Until(func() { c.topologyQueueWorker(logger) }, c.workerLoopPeriod, ctx.Done())
    
    	<-ctx.Done()
    }
    
    // serviceQueueWorker runs a worker thread that just dequeues items, processes
    // them, and marks them done. You may run as many of these in parallel as you
    // wish; the workqueue guarantees that they will not end up processing the same
    // service at the same time
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 08:33:32 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  8. pkg/scheduler/internal/queue/scheduling_queue_test.go

    				{eventHappens: &PvAdd},
    				{podPopped: pod2},
    				{eventHappens: &NodeAdd},
    				// This pod will be requeued to backoffQ because no plugin is registered as unschedulable plugin.
    				{podEnqueued: newQueuedPodInfoForLookup(pod)},
    				{eventHappens: &CSINodeUpdate},
    				// This pod will be requeued to backoffQ because no plugin is registered as unschedulable plugin.
    				{podEnqueued: newQueuedPodInfoForLookup(pod2)},
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 146.9K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/types.go

    	// i.e., when unscheduled Pods are updated, the scheduling queue checks with Pod/Update QueueingHint(s) whether the update may make the pods schedulable,
    	// and requeues them to activeQ/backoffQ when at least one QueueingHint(s) return Queue.
    	// Plugins **have to** implement a QueueingHint for Pod/Update event
    	// if the rejection from them could be resolved by updating unscheduled Pods themselves.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 19:28:17 UTC 2024
    - 36.7K bytes
    - Viewed (0)
  10. pkg/controller/resourceclaim/controller.go

    	ec.queue.AddRateLimited(key)
    
    	return true
    }
    
    // syncHandler is invoked for each work item which might need to be processed.
    // If an error is returned from this function, the item will be requeued.
    func (ec *Controller) syncHandler(ctx context.Context, key string) error {
    	sep := strings.Index(key, ":")
    	if sep < 0 {
    		return fmt.Errorf("unexpected key: %s", key)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 37.1K bytes
    - Viewed (0)
Back to top