lucian
03/06/2025, 12:18 PMMarvin
03/06/2025, 12:18 PMretry_condition_fn
argument, which allows you to define a callable that determines whether a task should be retried based on its state.
For more detailed information, you can refer to the Prefect 3.x documentation on writing tasks.
If you specifically need to re-run a task outside of the flow context after it has failed, you might need to manually trigger the task execution by creating a new flow run that includes only the failed task logic.
For further exploration of the Prefect API, you can review the top-level offerings like flow
, task
, and State
, which might help in custom implementations.