nestjs-temporal-core
    Preparing search index...

    Interface RetryPolicy

    Options for retrying Workflows and Activities

    interface RetryPolicy {
        backoffCoefficient?: number;
        initialInterval?: Duration;
        maximumAttempts?: number;
        maximumInterval?: Duration;
        nonRetryableErrorTypes?: string[];
    }
    Index

    Properties

    backoffCoefficient?: number

    Coefficient used to calculate the next retry interval. The next retry interval is previous interval multiplied by this coefficient.

    1

    2
    
    initialInterval?: Duration

    Interval of the first retry. If coefficient is 1 then it is used for all retries

    number of milliseconds or ms-formatted string

    1 second
    
    maximumAttempts?: number

    Maximum number of attempts. When exceeded, retries stop (even if ActivityOptions.scheduleToCloseTimeout hasn't been reached).

    Infinity
    
    maximumInterval?: Duration

    Maximum interval between retries. Exponential backoff leads to interval increase. This value is the cap of the increase.

    100x of initialInterval

    number of milliseconds or ms-formatted string

    nonRetryableErrorTypes?: string[]

    List of application failures types to not retry.