https://prefect.io logo
i

Ivan

07/24/2023, 5:15 PM
Hi! Is there any way to set up the retries within a flow deployment? Or it could be only be set on the flow code level?
m

morten

07/25/2023, 9:05 AM
Maybe you can use the
parameter
field for that in the `prefect.yaml`file: https://docs.prefect.io/2.11.0/concepts/deployments-ux/#deployment-fields
(have not tried it, so is just a guess)
i

Ivan

07/25/2023, 9:07 AM
@morten thank you! I'm not sure about this, because retries are defined in the
@flow
decorator and parameters will work when passing input args to the flow function itself. But maybe there is a way to pass it to decorator arg as well 🤔
m

morten

07/25/2023, 9:09 AM
hmm I can she problem.... maybe you would need to do it as a subflow, as in main flow run with standard decorator input, reads the parameter, and the passes parameter value to the subflow.
i

Ivan

07/25/2023, 9:10 AM
Good idea, will try that, thank you 🙏
m

morten

07/25/2023, 9:11 AM
well.. it might not work... so lets see if its a good idea 😄 have not used Prefect for that long, maybe you cant even define flows and subflows like that.
🤔 1
i

Ivan

07/25/2023, 9:16 AM
Will give it a try anyway :)