@gradientedge/commercetools-utils
    Preparing search index...

    Interface CommercetoolsRetryConfig

    Configuration for retrying a request when it fails

    interface CommercetoolsRetryConfig {
        delayMs: number;
        jitter?: boolean;
        maxRetries: number;
    }
    Index

    Properties

    delayMs: number

    The number of milliseconds to wait before retrying a failed request. This will be increased exponentially {@see CommercetoolsApi.calculateDelay}.

    jitter?: boolean

    If enabled, adds a random element to the exponential increase in retry time. See the following url for more details: https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/ We utilise the 'full' jitter + plus an additional decaying variance.

    maxRetries: number

    The maximum number of times that a request will be retried before returning the error caught from the last failure.