@bitsinfra/fusee
    Preparing search index...

    Interface RetryPolicy

    interface RetryPolicy {
        attempts?: number;
        backoff?: "exponential" | "fixed";
        factor?: number;
        initial?: Duration;
        jitter?: boolean;
        max?: Duration;
        maxElapsed?: Duration;
        nonRetryable?: (string | (new (...args: any[]) => Error))[];
        onExhausted?: "fail" | "pause";
        retryIf?: (error: unknown) => boolean;
    }
    Index
    attempts?: number

    Attempts including the first (default 3).

    backoff?: "exponential" | "fixed"

    "fixed": every delay is initial (the same as factor: 1).

    factor?: number

    Each delay is the last times this (default 2).

    initial?: Duration

    First delay (default 100ms).

    jitter?: boolean

    Each delay is drawn between half and all of it (default true), so retries spread out.

    max?: Duration

    Longest delay (default 10s).

    maxElapsed?: Duration

    No attempt starts once this long has passed since the first failure.

    nonRetryable?: (string | (new (...args: any[]) => Error))[]

    Errors never retried: class names or classes (a FatalError, or retryable = false, never is).

    onExhausted?: "fail" | "pause"

    When the retries run out on an error that could be retried: "fail" (the default) fails the step; "pause" pauses the run, with its parent and callers waiting, until run.resume() runs the step again with a fresh set of attempts. Unset: the engine's onExhausted.

    retryIf?: (error: unknown) => boolean

    Retried only while this returns true.