Hi, is it possible to set the timeout and retries at deployment level? We have a flow which operates on a database table given as a parameter and multiple deployments (each for a different table). We would like to set different timeouts and retry logic for different deployments, so we can still have a single flow and not duplicated the entire flow just to have a specific timeout. Thanks!
d
Deceivious
08/15/2023, 1:07 PM
Prefect doesnt support exactly what you want.
But you can write your flows such that the flows accept the timeouts and retry and bind them to the parameters on your deployments.
i
Igor Kaluder
08/31/2023, 10:44 AM
Not sure if that's possible as timeouts and retries are decorator parameters
d
Deceivious
08/31/2023, 10:56 AM
Nope what I mean is you introduce them to ur flows.
And do the retry logic in ur flow
i
Igor Kaluder
08/31/2023, 10:57 AM
You mean implement your own retry logic and not rely on the Prefect provided one?
d
Deceivious
08/31/2023, 11:03 AM
Yup
i
Igor Kaluder
08/31/2023, 11:24 AM
Got it. Thank you! I still don't get why is it not possible to add timeouts and retries at deployment level. Unless anyone has an explanation, I'll open a GitHub issue