https://prefect.io logo
Title
a

Avi A

05/21/2020, 7:34 AM
Hey! We’re need to use some retries in our flow. Is there a way to have a variable
retry_delay
that increases in each retry? (e.g. implement an exponential backoff)
l

Laura Lorenz (she/her)

05/21/2020, 12:02 PM
Hi @Avi A! You can set
retry_delay
as a specific timedelta on the @task decorator or when instantiating your task class (see https://docs.prefect.io/api/latest/core/task.html#task-2). It does not support backoff though, just wahtever timedelta you specify the delay should be. There is an open issue about implementing backoff here: https://github.com/PrefectHQ/prefect/issues/14
a

Avi A

05/21/2020, 12:02 PM
cool thanks for the reference to the issue 🙂
👍 1