Ji-Oh Yoo
08/21/2024, 5:10 AMretry_jitter_factor
only about adding the delay seconds with such factor, or can it also decrease the delay seconds from the base amount?Marvin
08/21/2024, 5:10 AMretry_jitter_factor
in Prefect is used to add variance to the base retry delay, providing a random amount of time around the base delay to help prevent "thundering herd" scenarios. Specifically:
- It can increase the base delay by up to the factor specified.
- It does not decrease the base delay below the original value.
For instance, if the base delay is 10 seconds and the retry_jitter_factor
is 0.5, the delay can range up to 15 seconds but not below 10 seconds.
For further details, you can refer to the Prefect documentation on tasks.