Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,253 for Retries (0.17 sec)

  1. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/transport/NetworkOperationBackOffAndRetry.java

            int backoff = initialBackOff;
            int retries = 0;
            T returnValue = null;
            while (retries < maxDeployAttempts) {
                retries++;
                Throwable failure;
                try {
                    returnValue = operation.call();
                    if (retries > 1) {
                        LOGGER.info("Successfully ran '{}' after {} retries", operation, retries - 1);
                    }
                    break;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 07 04:09:56 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  2. pkg/webhooks/webhookpatch_test.go

    func TestWebhookPatchingQueue(t *testing.T) {
    	success := atomic.NewInt32(0)
    	retries := atomic.NewInt32(0)
    	queue := newWebhookPatcherQueue(func(key types.NamespacedName) error {
    		if key.Name == "conflict-for-ever" {
    			retries.Inc()
    			return errors.New("conflict error")
    		}
    		if key.Name == "conflict-success" {
    			retries.Inc()
    			if retries.Load() < 5 {
    				return errors.New("conflict error")
    			}
    			success.Inc()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 02 09:53:38 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/route/retry/retry_test.go

    			},
    		},
    		{
    			name: "TestZeroAttemptsShouldReturnNilPolicy",
    			// Create a route with a retry policy with zero attempts configured.
    			route: &networking.HTTPRoute{
    				Retries: &networking.HTTPRetry{
    					// Explicitly not retrying.
    					Attempts: 0,
    				},
    			},
    			assertFunc: func(g *WithT, policy *envoyroute.RetryPolicy) {
    				g.Expect(policy).To(BeNil())
    			},
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  4. testing/internal-testing/src/main/groovy/org/gradle/testing/internal/util/RetryUtil.groovy

     */
    
    package org.gradle.testing.internal.util
    
    final class RetryUtil {
        private RetryUtil() {}
    
        static int retry(int retries = 3, int waitMsBetweenRetries = 0, Closure closure) {
            int retryCount = 0
            Throwable lastException = null
    
            while (retryCount++ < retries) {
                try {
                    closure.call()
                    return retryCount
                } catch (Throwable e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  5. cmd/bootstrap-peer-server.go

    			// herd upon start up sequence.
    			time.Sleep(25*time.Millisecond + time.Duration(rand.Int63n(int64(100*time.Millisecond))))
    			retries++
    			// after 20 retries start logging that servers are not reachable yet
    			if retries >= 20 {
    				logger.Info(fmt.Sprintf("Waiting for at least %d remote servers with valid configuration to be online", len(clnts)/2))
    				if len(offlineEndpoints) > 0 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. src/runtime/retry.go

    	for tries := 0; tries < 20; tries++ {
    		errno := fn()
    		if errno != _EAGAIN {
    			return errno
    		}
    		usleep_no_g(uint32(tries+1) * 1000) // milliseconds
    	}
    	return _EAGAIN
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 10 20:44:45 UTC 2022
    - 760 bytes
    - Viewed (0)
  7. platforms/software/maven/src/integTest/groovy/org/gradle/api/publish/maven/MavenPublishJavaRetriesIntegTest.groovy

            ExecutionResult result = run "publish", '--info'
    
            then:
            verifyPublications()
            outputContains("Waiting 1000ms before next retry, 2 retries left")
            outputContains("Waiting 2000ms before next retry, 1 retries left")
            outputContains("after 2 retries")
        }
    
    
        def expectPublication() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  8. platforms/software/ivy/src/integTest/groovy/org/gradle/api/publish/ivy/IvyPublishJavaRetriesIntegTest.groovy

            ExecutionResult result = run "publish", '--info'
    
            then:
            verifyPublications()
            outputContains("Waiting 1000ms before next retry, 2 retries left")
            outputContains("Waiting 2000ms before next retry, 1 retries left")
            outputContains("after 2 retries")
        }
    
    
        def expectPublication() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  9. pkg/test/util/retry/retry.go

    func MaxAttempts(attempts int) Option {
    	return func(cfg *config) {
    		cfg.maxAttempts = attempts
    	}
    }
    
    // RetriableFunc a function that can be retried.
    type RetriableFunc func() (result any, completed bool, err error)
    
    // UntilSuccess retries the given function until success, timeout, or until the passed-in function returns nil.
    func UntilSuccess(fn func() error, options ...Option) error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 08 16:43:05 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  10. pkg/util/goroutinemap/exponentialbackoff/exponential_backoff.go

    	// constant recognizable.
    	maxDurationBeforeRetry = 2*time.Minute + 2*time.Second
    )
    
    // ExponentialBackoff contains the last occurrence of an error and the duration
    // that retries are not permitted.
    type ExponentialBackoff struct {
    	lastError           error
    	lastErrorTime       time.Time
    	durationBeforeRetry time.Duration
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 19 03:30:46 UTC 2022
    - 4.2K bytes
    - Viewed (0)
Back to top