Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 121 for dequeue1 (0.19 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/common/maplist.go

    	if !ok {
    		return nil
    	}
    	if match, ok := a.keyedItems[key]; ok {
    		return match
    	}
    	// keep keying items until we either find a match or run out of unkeyed items
    	for len(a.unkeyedItems) > 0 {
    		// dequeue an unkeyed item
    		item := a.unkeyedItems[0]
    		a.unkeyedItems = a.unkeyedItems[1:]
    
    		// key the item
    		mitem, ok := item.(map[string]interface{})
    		if !ok {
    			continue
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 07 02:56:51 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. internal/event/config_test.go

       <Queue>arn:minio:sqs:us-east-1:1:webhook</Queue>
       <Event>s3:ObjectAccessed:*</Event>
       <Event>s3:ObjectCreated:*</Event>
       <Event>s3:ObjectRemoved:*</Event>
    </QueueConfiguration>`)
    	queue1 := &Queue{}
    	if err := xml.Unmarshal(data, queue1); err != nil {
    		panic(err)
    	}
    
    	data = []byte(`
    <QueueConfiguration>
       <Id>1</Id>
        <Filter>
            <S3Key>
                <FilterRule>
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Dec 05 10:16:33 UTC 2023
    - 29K bytes
    - Viewed (0)
  3. pkg/queue/delay_test.go

    	sorted := []*delayTask{t1, t2, t3, t4}
    	// fill in an unsorted order
    	unsorted := []*delayTask{t4, t2, t3, t1}
    	for _, task := range unsorted {
    		heap.Push(pq, task)
    	}
    
    	// dequeue should be in order
    	for i, task := range sorted {
    		peeked := pq.Peek()
    		popped := heap.Pop(pq)
    		if task != popped {
    			t.Fatalf("pop %d was not in order", i)
    		}
    		if peeked != popped {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 20 06:27:31 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/FinalizableReferenceQueue.java

    import java.net.URL;
    import java.net.URLClassLoader;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.annotation.CheckForNull;
    
    /**
     * A reference queue with an associated background thread that dequeues references and invokes
     * {@link FinalizableReference#finalizeReferent()} on them.
     *
     * <p>Keep a strong reference to this object until all of the associated referents have been
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 26 20:07:17 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  5. pkg/controller/cronjob/utils.go

    		return earliestTime, nil, missedSchedules, nil
    	}
    	return earliestTime, &mostRecentTime, missedSchedules, nil
    }
    
    // nextScheduleTimeDuration returns the time duration to requeue based on
    // the schedule and last schedule time. It adds a 100ms padding to the next requeue to account
    // for Network Time Protocol(NTP) time skews. If the time drifts the adjustment, which in most
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  6. pkg/controlplane/controller/clusterauthenticationtrust/cluster_authentication_trust_controller.go

    	configMapLister corev1listers.ConfigMapLister
    	configMapClient corev1client.ConfigMapsGetter
    	namespaceClient corev1client.NamespacesGetter
    
    	// queue is where incoming work is placed to de-dup and to allow "easy" rate limited requeues on errors.
    	// we only ever place one entry in here, but it is keyed as usual: namespace/name
    	queue workqueue.TypedRateLimitingInterface[string]
    
    	// kubeSystemConfigMapInformer is tracked so that we can start these on Run
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  7. pkg/controller/deployment/progress_test.go

    			expected: time.Duration(-1),
    		},
    		{
    			name:     "complete deployment does not need to be requeued",
    			d:        currentDeployment(&pds, 3, 3, 3, 3, nil),
    			status:   newDeploymentStatus(3, 3, 3),
    			expected: time.Duration(-1),
    		},
    		{
    			name:     "already failed deployment does not need to be requeued",
    			d:        currentDeployment(&pds, 3, 3, 3, 0, failed),
    			status:   newDeploymentStatus(3, 3, 0),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  8. operator/pkg/controller/istiocontrolplane/istiocontrolplane_controller.go

    // Reconcile reads that state of the cluster for a IstioOperator object and makes changes based on the state read
    // and what is in the IstioOperator.Spec
    // Note:
    // The Controller will requeue the Request to be processed again if the returned error is non-nil or
    // Result.Requeue is true, otherwise upon completion it will remove the work from the queue.
    func (r *ReconcileIstioOperator) Reconcile(_ context.Context, request reconcile.Request) (reconcile.Result, error) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 13:56:46 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  9. pkg/controller/certificates/certificate_controller.go

    		return
    	}
    
    	for i := 0; i < workers; i++ {
    		go wait.UntilWithContext(ctx, cc.worker, time.Second)
    	}
    
    	<-ctx.Done()
    }
    
    // worker runs a thread that dequeues CSRs, handles them, and marks them done.
    func (cc *CertificateController) worker(ctx context.Context) {
    	for cc.processNextWorkItem(ctx) {
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  10. pkg/controller/statefulset/stateful_set.go

    	if err != nil {
    		utilruntime.HandleError(fmt.Errorf("couldn't get key for object %#v: %v", ss, err))
    		return
    	}
    	ssc.queue.AddAfter(key, duration)
    }
    
    // processNextWorkItem dequeues items, processes them, and marks them done. It enforces that the syncHandler is never
    // invoked concurrently with the same key.
    func (ssc *StatefulSetController) processNextWorkItem(ctx context.Context) bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 18.5K bytes
    - Viewed (0)
Back to top