Cell API
    Preparing search index...

    Interface RetryOptions<T>

    RetryOptions interface represents the options for retrying a task.

    interface RetryOptions<T = any> {
        backOffOptions?: BackOffOptions;
        exhaustedOnly?: boolean;
        maxAttempts?: number;
        notRetryErrors?: any[];
        recoveryCallback?: RecoveryCallback<T>;
        retryErrors?: any[];
        rollbackError?: any;
        timeout?: number;
    }

    Type Parameters

    • T = any

      The type of the recovery callback parameter.

    Index
    backOffOptions?: BackOffOptions

    The options for exponential backoff strategy.

    exhaustedOnly?: boolean

    Indicates whether to retry only when all attempts are exhausted.

    maxAttempts?: number

    The maximum number of attempts to retry the task.

    notRetryErrors?: any[]

    The list of custom error classes to not retry on.

    recoveryCallback?: RecoveryCallback<T>

    The callback function to recover from an error.

    retryErrors?: any[]

    The list of custom error classes to retry on.

    rollbackError?: any

    The custom error class to rollback the operation.

    timeout?: number

    The timeout duration in milliseconds for each attempt.