Kamal
04/19/2024, 2:48 PMMarvin
04/19/2024, 2:48 PMrun_deployment
invocation may not be directly supported in the current Prefect documentation or standard usage. However, retry logic is typically defined at the task or flow level within the flow definition itself, rather than at the time of triggering a flow run via a deployment.
To implement retries in your flow, you can set retry parameters on tasks or set up a state handler at the flow level to manage retries. While these configurations need to be made before deployment, once configured and deployed, the retry behavior will automatically apply to all runs of that deployment.
For more information on how to set up retries and retry policies for tasks in Prefect, you can refer to the handling failure section in the documentation:
Handling Failure
The link to the search result that led to this conclusion:
Prefect Docs - Using the Client
Please let me know if you need further assistance with configuring retries or anything else related to Prefect.