Nicholas Pini
02/25/2025, 6:42 PMMarvin
02/25/2025, 6:43 PMNicholas Pini
02/25/2025, 6:43 PMMarvin
02/25/2025, 6:44 PMflow
decorator in Prefect 3.x does not have a parameter named retry_condition_fn
. This parameter is available for tasks, allowing you to specify a callable that determines whether a task should be retried based on its state.
If you're looking to implement similar retry logic for a flow, you might need to handle it manually by monitoring the flow's state and re-triggering the flow run under certain conditions. This would involve using Prefect's API or client to programmatically manage flow runs. You can find more about flow management in the Prefect documentation.
For tasks, the retry_condition_fn
parameter is used to define custom retry behavior, which might be useful if you have tasks within your flow that need this functionality.