Interface RetryPolicy

Governs automatic retry behaviour for transient node failures.

interface RetryPolicy {
    maxAttempts: number;
    backoff: "exponential" | "linear" | "fixed";
    backoffMs: number;
    retryOn?: string[];
}

Properties

maxAttempts: number

Total number of attempts (including the first).

backoff: "exponential" | "linear" | "fixed"

Wait time growth strategy between attempts.

backoffMs: number

Base wait duration in milliseconds.

retryOn?: string[]

Optional allowlist of error codes/names that trigger retry. When absent, all errors are retried up to maxAttempts.