Skip to main content

Interface: WorkflowRetryOptions

Run-level retry of a workflow (11 §2.17): a run that fails with a retryable failure, or whose run timeout expires, starts again as a new run of the same chain with ctx.info.attempt + 1 and ctx.info.lastFailure.

Properties​

backoffMultiplier?​

optional backoffMultiplier?: number

Default 2.


initialDelay?​

optional initialDelay?: Duration

Delay before the second attempt; default 1 s.


maxAttempts?​

optional maxAttempts?: number

Attempts in total, the first one included; absent means unlimited (bounded by the execution timeout).


maxDelay?​

optional maxDelay?: Duration

Largest delay; default 100 s, or 100 times initialDelay when that is given.


nonRetryableErrorTypes?​

optional nonRetryableErrorTypes?: string[]

Free-form failure types that are never retried.