Mitchell Bregman
retries
@flow(name="my-dbt-flow", retries=5) def my_dbt_flow(run_dbt: bool = True): if run_dbt: # Runs a Prefect flow until completion dbt_flow = create_flow_run(flow_name="dbt", wait=True) if dbt_flow.state_name == 'Completed': do_something(wait_for=[dbt_flow]) else: raise Exception("DBT did not complete successfully.")
Exception
Failed
Jenny
retry_delay_seconds
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.