Quantcast
Channel: Active questions tagged retry-logic - Stack Overflow
Viewing all articles
Browse latest Browse all 950

Airflow DAG to retry if any of the Airflow Tasks fails

$
0
0

Would like to ask a Airflow question , currently when we set on the DAG default args to retry 5 timesif failure happens

   default_args = {'owner': 'testing','retries': 5,'retry_delay': timedelta(minutes=1)    }

so what happens now is that if any tasks on the DAG fails it will retry on the tasks. Would like to know if there is any way to set if anyone of the tasks fails to restart the entire DAG instead ?

Test DAG

task1 --> task2 --> task3 --> task4

so for example if tasks 3 has occurred failure , i would like it to start from task1 again . would that be possible ??

Thank you


Viewing all articles
Browse latest Browse all 950

Trending Articles