Interface: RetryPolicy
Defined in: node_modules/@temporalio/common/lib/retry-policy.d.ts:6
Options for retrying Workflows and Activities
Properties
backoffCoefficient?
optionalbackoffCoefficient?:number
Defined in: node_modules/@temporalio/common/lib/retry-policy.d.ts:13
Coefficient used to calculate the next retry interval. The next retry interval is previous interval multiplied by this coefficient.
Minimum
1
Default
2
initialInterval?
optionalinitialInterval?:Duration
Defined in: node_modules/@temporalio/common/lib/retry-policy.d.ts:20
Interval of the first retry. If coefficient is 1 then it is used for all retries
Format
number of milliseconds or ms-formatted string
Default
1 second
maximumAttempts?
optionalmaximumAttempts?:number
Defined in: node_modules/@temporalio/common/lib/retry-policy.d.ts:27
Maximum number of attempts. When exceeded, retries stop (even if ActivityOptions.scheduleToCloseTimeout hasn't been reached).
Default
Infinity
maximumInterval?
optionalmaximumInterval?:Duration
Defined in: node_modules/@temporalio/common/lib/retry-policy.d.ts:36
Maximum interval between retries. Exponential backoff leads to interval increase. This value is the cap of the increase.
Default
100x of initialInterval
Format
number of milliseconds or ms-formatted string
nonRetryableErrorTypes?
optionalnonRetryableErrorTypes?:string[]
Defined in: node_modules/@temporalio/common/lib/retry-policy.d.ts:40
List of application failures types to not retry.