Restate Typescript SDK
    Preparing search index...
    type RetryPolicy = {
        exponentiationFactor?: number;
        initialInterval?: Duration | number;
        maxAttempts?: number;
        maxInterval?: Duration | number;
        onMaxAttempts?: "pause" | "kill";
    }
    Index

    Properties

    exponentiationFactor?: number

    Exponentiation factor to use when computing the next retry delay.

    initialInterval?: Duration | number

    Initial interval for the first retry attempt. Retry interval will grow by a factor specified in exponentiationFactor.

    If a number is provided, it will be interpreted as milliseconds.

    maxAttempts?: number

    Max number of retry attempts (including the initial). When reached, the behavior specified in onMaxAttempts will be applied.

    maxInterval?: Duration | number

    Max interval between retries. Retry interval will grow by a factor specified in exponentiationFactor.

    If a number is provided, it will be interpreted as milliseconds.

    onMaxAttempts?: "pause" | "kill"

    What to do when max attempts are reached.

    If pause, the invocation will enter the paused state and can be manually resumed from the CLI/UI.

    If kill, the invocation will get automatically killed.