Hi, is it possible to set the timeout and retries ...
# ask-community
i
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
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
Not sure if that's possible as timeouts and retries are decorator parameters
d
Nope what I mean is you introduce them to ur flows.
And do the retry logic in ur flow
i
You mean implement your own retry logic and not rely on the Prefect provided one?
d
Yup
i
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