Retry Policies in Temporal
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 failure
initialInterval: The amount of time Temporal should wait to retry after the first failure
maximumAttempts: The maximum number of times Temporal should retry before erroring out
maximumInterval: The maximum amount of time Temporal will wait between retries
nonRetryableErrorTypes: 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.