Restate Typescript SDK
    Preparing search index...

    Retry policy for run. Mirrors the SDK's RunOptions retry knobs but namespaced (no Retry prefix on each field) and grouped under RunOpts.retry for readability.

    type RetryOptions = {
        exponentiationFactor?: number;
        initialInterval?: Duration | number;
        intervalFactor?: number;
        maxAttempts?: number;
        maxDuration?: Duration | number;
        maxInterval?: Duration | number;
    }
    Index

    Properties

    exponentiationFactor?: number

    Exponentiation factor applied to the previous delay. Defaults to 2.

    initialInterval?: Duration | number

    First retry delay. Subsequent delays grow by exponentiationFactor. Number is ms. Defaults to 50 ms.

    intervalFactor?: number

    Renamed to exponentiationFactor.

    maxAttempts?: number

    Max attempts (including the initial). When reached, run throws a TerminalError wrapping the original error message.

    maxDuration?: Duration | number

    Max total duration of retries before giving up. Number is ms.

    maxInterval?: Duration | number

    Cap on retry delay. Number is ms. Defaults to 10 s.