Interface: RetryPolicy
client.RetryPolicy
Options for retrying Workflows and Activities
Properties
backoffCoefficient
• Optional
backoffCoefficient: number
Coefficient used to calculate the next retry interval. The next retry interval is previous interval multiplied by this coefficient.
Minimum
1
Default
2
initialInterval
• Optional
initialInterval: string
| number
Interval of the first retry. If coefficient is 1 then it is used for all retries
Format
ms formatted string or number of milliseconds
Default
1 second
maximumAttempts
• Optional
maximumAttempts: number
Maximum number of attempts. When exceeded, retries stop (even if ActivityOptions.scheduleToCloseTimeout hasn't been reached).
Default
Infinity
maximumInterval
• Optional
maximumInterval: string
| number
Maximum interval between retries. Exponential backoff leads to interval increase. This value is the cap of the increase.
Default
100x of initialInterval
Format
ms formatted string or number of milliseconds
nonRetryableErrorTypes
• Optional
nonRetryableErrorTypes: string
[]
List of application failures types to not retry.