https://prefect.io logo
j

Jason Motley

01/18/2022, 3:55 PM
What's the best way to replicate the
max_retries
feature but for an entire flow? I.e. if the flow fails for some reason, retry it 5 minutes later.
k

Kevin Kho

01/18/2022, 3:59 PM
Flow level retries are being considered for Orion, but the thing is that it means slightly different things to different people. If you only want to re-run failed tasks, I would either of: 1. moving all failed states to scheduled 2. use the KV store to keep a counter, use a state handler to trigger another flow run, and caching to avoid re-running already completed tasks
j

Jason Motley

01/18/2022, 4:01 PM
Gotcha, thank you, that is helpful!
3 Views