retry
Retry condition shared by the DAG step tasks.
Module
Functions
retry_unless_permanent
def retry_unless_permanent(task: Any, task_run: TaskRun, state: State[Any]) ‑> bool:Prefect retry_condition_fn that skips retries for a permanent failure.
A failure that retrying cannot fix, such as the hub refusing a model download, fails the step at its first attempt instead of after each of its retries.
Arguments
task: The task whose run failed.task_run: The failed task run.state: The failed state, which carries the exception as itsdata.
Returns
False if the failure is permanent, else True.