Hey! We’re need to use some retries in our flow. I...
# prefect-community
a
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
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
cool thanks for the reference to the issue 🙂
👍 1