Asynchronous workflows retry policies
Asynchronous workflows have a built-in retry mechanism governed by the following parameters:
- Attempts: number of retries after the first error, so value 0 means no retries.
Consecutive attempts are spaced out by an interval that is configured with the two parameters below. - Delay: pause in seconds before the first retry.
- Multiplier: multiplier used in the formula below.
The formula to compute the delay between consecutive attempts before the first is:
So, for example, if the retry policies are:
- Attempts: 4
- Delay: 2s
- Multiplier: 1.5
and there is an error, a maximum for four retries will be attempted, separated by the following pauses:
- Before the first retry: 2s
- Between the first and the second retry: 3s
- Between the second and the third retry: 6.75s
- Between the third and the fourth retry: 22.78125s