Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,582 for Retries (0.12 sec)

  1. security/pkg/cmd/constants.go

    	DefaultRootCertGracePeriodPercentile = 20
    
    	// ReadSigningCertRetryInterval specifies the time to wait between retries on reading the signing key and cert.
    	ReadSigningCertRetryInterval = time.Second * 5
    
    	// ReadSigningCertRetryMax specifies the total max time to wait between retries on reading the signing key and cert.
    	ReadSigningCertRetryMax = time.Second * 30
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jul 07 03:27:36 UTC 2020
    - 1.7K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. src/cmd/go/internal/robustio/robustio_flaky.go

    //go:build windows || darwin
    
    package robustio
    
    import (
    	"errors"
    	"math/rand"
    	"os"
    	"syscall"
    	"time"
    )
    
    const arbitraryTimeout = 2000 * time.Millisecond
    
    // retry retries ephemeral errors from f up to an arbitrary timeout
    // to work around filesystem flakiness on Windows and Darwin.
    func retry(f func() (err error, mayRetry bool)) error {
    	var (
    		bestErr     error
    		lowestErrno syscall.Errno
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  5. 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)
  6. pkg/queue/delay.go

    	go func() {
    		defer close(stopped)
    		for {
    			select {
    			case t := <-d.execute:
    				if err := t.do(); err != nil {
    					if t.retries < maxTaskRetry {
    						t.retries++
    						log.Warnf("Work item handle failed: %v %d times, retry it", err, t.retries)
    						d.pushInternal(t)
    						continue
    					}
    					log.Errorf("Work item handle failed: %v, reaching the maximum retry times: %d, drop it", err, maxTaskRetry)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 20 06:27:31 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  7. security/pkg/k8s/controller/casecret.go

    func NewCaSecretController(core corev1.CoreV1Interface) *CaSecretController {
    	cs := &CaSecretController{
    		client: core,
    	}
    	return cs
    }
    
    // LoadCASecretWithRetry reads CA secret with retries until timeout.
    func (csc *CaSecretController) LoadCASecretWithRetry(secretName, namespace string,
    	retryInterval, timeout time.Duration,
    ) (*v1.Secret, error) {
    	start := time.Now()
    	var caSecret *v1.Secret
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/Authenticator.kt

     * both.
     *
     * Applications may configure OkHttp with an authenticator for origin servers, or proxy servers,
     * or both.
     *
     * ## Authentication Retries
     *
     * If your authentication may be flaky and requires retries you should apply some policy
     * to limit the retries by the class of errors and number of attempts.  To get the number of
     * attempts to the current point use this function.
     *
     * ```java
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/repositories/transport/NetworkOperationBackOffAndRetryTest.groovy

    import spock.lang.Specification
    
    import java.util.concurrent.Callable
    
    class NetworkOperationBackOffAndRetryTest extends Specification {
    
        def 'retries operation on transient network issue and fails after max attempts - #ex'() {
            when:
            int attempts = 0
            Callable operation = {
                attempts++
                throw ex
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 07 04:09:56 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  10. cni/pkg/nodeagent/cni-watcher.go

    	// if nil is returned, we found it but ambient is not enabled
    	for ambientPod, err = s.handlers.GetPodIfAmbient(name, namespace); (err != nil) && (retries < maxStaleRetries); retries++ {
    		log.Warnf("got an event for pod %s in namespace %s not found in current pod cache, retry %d of %d",
    			name, namespace, retries, maxStaleRetries)
    		if !sleep.UntilContext(s.ctx, time.Duration(msInterval)*time.Millisecond) {
    			return nil, fmt.Errorf("aborted")
    		}
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:35 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top