Hi prefect team,
Is there a way in prefect to set a "universal retry" policy for all flows in prefect 2.0?
For instance if you didn't specify a retry option in your code it would automatically take this universal setting. If a retry policy is set in code then that would override the universal setting.
Second question is there a way to set unlimited retries, besides just setting a really big number for "retries" parameter?
✅ 1
a
Anna Geller
07/21/2022, 10:58 AM
No, there is not because this is client side setting in your code. But I'll add your feature request to a ticket we have for setting defaults
This is something you might solve with a while loop
r
Rajvir Jhawar
07/21/2022, 11:22 AM
@Anna Geller a feature request would be great thank you so much.
For my specific situation and setup a while loop wouldn't work in case. I can make do with the current implementation.
Maybe one more feature request here:
Could we add exponential backoff on a retry?
Example:
If would be useful if instead of delaying each run for 60 secs we could have something like this:
flow (retry=5, retry_delay_seconds=60, backoff_multiplier=2 )
That way after the first run the next run will go for 60 seconds then after that it will be 60*2 and after that 60*2*2
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.