Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for ExponentialBackOff (0.28 sec)

  1. platforms/core-runtime/time/src/main/java/org/gradle/internal/time/ExponentialBackoff.java

        private final int timeoutMs;
        private CountdownTimer timer;
    
        public static ExponentialBackoff<Signal> of(int amount, TimeUnit unit) {
            return of(amount, unit, Signal.SLEEP);
        }
    
        public static <T extends Signal> ExponentialBackoff<T> of(int amount, TimeUnit unit, T signal) {
            return new ExponentialBackoff<T>((int) TimeUnit.MILLISECONDS.convert(amount, unit), signal, SLOT_TIME);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:49:35 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultFileLockManager.java

                        return ExponentialBackoff.Result.successful(lockOutcome);
                    } else {
                        return ExponentialBackoff.Result.notSuccessful(lockOutcome);
                    }
                });
            }
        }
    
        private ExponentialBackoff<AwaitableFileLockReleasedSignal> newExponentialBackoff(int shortTimeoutMs) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:32 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  3. platforms/software/security/src/main/java/org/gradle/security/internal/PublicKeyDownloadService.java

            try {
                ExponentialBackoff<ExponentialBackoff.Signal> backoff = ExponentialBackoff.of(5, TimeUnit.SECONDS, 50, TimeUnit.MILLISECONDS);
                backoff.retryUntil(() -> {
                    URI baseUri = serversLeft.poll();
                    if (baseUri == null) {
                        // no more servers left despite retries
                        return ExponentialBackoff.Result.successful(false);
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:49:35 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  4. pkg/kubelet/volumemanager/reconciler/reconciler_common.go

    					}
    				}
    			}
    		}
    	}
    }
    
    // ignore nestedpendingoperations.IsAlreadyExists and exponentialbackoff.IsExponentialBackoff errors, they are expected.
    func isExpectedError(err error) bool {
    	return nestedpendingoperations.IsAlreadyExists(err) || exponentialbackoff.IsExponentialBackoff(err) || operationexecutor.IsMountFailedPreconditionError(err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:23:12 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  5. pkg/volume/csi/nodeinfomanager/nodeinfomanager.go

    	}
    	return nil
    }
    
    func (nim *nodeInfoManager) updateNode(updateFuncs ...nodeUpdateFunc) error {
    	var updateErrs []error
    	err := wait.ExponentialBackoff(updateBackoff, func() (bool, error) {
    		if err := nim.tryUpdateNode(updateFuncs...); err != nil {
    			updateErrs = append(updateErrs, err)
    			return false, nil
    		}
    		return true, nil
    	})
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  6. pkg/controller/volume/attachdetach/reconciler/reconciler.go

    				rc.actualStateOfWorld.AddVolumeToReportAsAttached(logger, attachedVolume.VolumeName, attachedVolume.NodeName)
    
    				if !exponentialbackoff.IsExponentialBackoff(err) {
    					// Ignore exponentialbackoff.IsExponentialBackoff errors, they are expected.
    					// Log all other errors.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 22 21:02:38 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  7. pkg/kubelet/pluginmanager/plugin_manager_test.go

    	backoff := wait.Backoff{
    		Duration: initialDuration,
    		Factor:   3,
    		Jitter:   0,
    		Steps:    6,
    	}
    	return wait.ExponentialBackoff(backoff, fn)
    }
    
    func TestPluginRegistration(t *testing.T) {
    	defer cleanup(t)
    
    	pluginManager := newTestPluginManager(socketDir)
    
    	// Start the plugin manager
    	stopChan := make(chan struct{})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/wait/wait_test.go

    	// exits immediately
    	i := 0
    	err := ExponentialBackoff(Backoff{Factor: 1.0}, func() (bool, error) {
    		i++
    		return false, nil
    	})
    	if err != ErrWaitTimeout || i != 0 {
    		t.Errorf("unexpected error: %v", err)
    	}
    
    	opts := Backoff{Factor: 1.0, Steps: 3}
    
    	// waits up to steps
    	i = 0
    	err = ExponentialBackoff(opts, func() (bool, error) {
    		i++
    		return false, nil
    	})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  9. pkg/kubelet/pluginmanager/reconciler/reconciler_test.go

    	backoff := wait.Backoff{
    		Duration: initialDuration,
    		Factor:   3,
    		Jitter:   0,
    		Steps:    6,
    	}
    	return wait.ExponentialBackoff(backoff, fn)
    }
    
    type DummyImpl struct{}
    
    func NewDummyImpl() *DummyImpl {
    	return &DummyImpl{}
    }
    
    // ValidatePlugin is a dummy implementation
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 16 14:21:15 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  10. pkg/volume/csi/csi_plugin.go

    		// after max retry steps.
    		initBackoff := wait.Backoff{
    			Steps:    6,
    			Duration: 15 * time.Millisecond,
    			Factor:   6.0,
    			Jitter:   0.1,
    		}
    		err = wait.ExponentialBackoff(initBackoff, func() (bool, error) {
    			klog.V(4).Infof("Initializing migrated drivers on CSINode")
    			err := nim.InitializeCSINodeWithAnnotation()
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 29.2K bytes
    - Viewed (0)
Back to top