Alokai

RetryConfig

User-facing retry configuration (axios-retry style). Every field is optional and falls back to the built-in default policy.

interface RetryConfig {
	retries?: number;
	retryCondition?: RetryCondition;
	retryDelay?: RetryDelay;
}

Properties

NameRequiredTypeDescription
retriesOptionalnumberMaximum number of retries after the initial attempt (so 2 allows up to 3 attempts total). 0 disables retrying. 2
retryConditionOptionalRetryConditionDecides whether a failed call should be retried. By default, retries transient transport errors (502/503/504/408/429 and normalized network failures). The context (method/integration/extension name, attempt, budget, logger) is available for custom conditions, e.g. to restrict retries to specific methods.
retryDelayOptionalRetryDelayReturns the delay in milliseconds before the given retry. Defaults to randomized exponential backoff.

Referenced Types

On this page