Skip to main content

RetryPolicy

@retinue/monorepo


@retinue/monorepo / backend/src / RetryPolicy

Type Alias: RetryPolicy

RetryPolicy = object

Defined in: backend/src/runtime/retry.ts:15

Properties​

backoffFactor​

readonly backoffFactor: number

Defined in: backend/src/runtime/retry.ts:23

Geometric growth per attempt.


baseDelayMs​

readonly baseDelayMs: number

Defined in: backend/src/runtime/retry.ts:19

Backoff for the first retry, before jitter.


jitter​

readonly jitter: number

Defined in: backend/src/runtime/retry.ts:25

Fraction of the backoff shaved off by jitter, in [0, 1]. 0.25 mirrors the Anthropic SDK.


maxAttempts​

readonly maxAttempts: number

Defined in: backend/src/runtime/retry.ts:17

Total attempts including the first. maxAttempts: 1 disables retrying.


maxDelayMs​

readonly maxDelayMs: number

Defined in: backend/src/runtime/retry.ts:21

Upper bound on the computed (pre-retry-after) backoff.


retryAfterCapMs​

readonly retryAfterCapMs: number

Defined in: backend/src/runtime/retry.ts:27

A server retry-after is honored up to this ceiling, so a hostile value cannot stall a run.