Retry Policies in Temporal
Apr 4, 2022
RetryPolicy
instances in Temporal allow you to define how Temporal retries Activities.
You can specify options like the number of times to retry before failing and how long to wait between retries.
Below are the supported options:
backoffCoefficient
: Temporal will multiply how long it waits between retries by this number after every failureinitialInterval
: The amount of time Temporal should wait to retry after the first failuremaximumAttempts
: The maximum number of times Temporal should retry before erroring outmaximumInterval
: The maximum amount of time Temporal will wait between retriesnonRetryableErrorTypes
: Array of strings containing the errors to skip retrying
Below is a tool that calculates whether an activity succeeds or fails for a given retry policy.
Activity Retries
Retry Policy (in ms)
Did you find this tutorial useful? Say thanks by starring our repo on GitHub!