...

/

Task Triggers and Failures

Task Triggers and Failures

This lesson explains how the trigger behavior of tasks changes with the different settings for the trigger_rule parameter. Additionally, the lesson also covers unexpected task failures.

We'll cover the following...

Tasks get triggered when tasks upstream to them succeed. This is the default trigger behavior for tasks, but there are different variations that Airflow offers. Consider the following workflow:


DAG of Example11

In the workflow above, task5 has the trigger_rule set to all_success by default. This implies that task5 will be executed only when tasks directly upstream to it succeed. Due to branching, only one of the tasks, task3 or task4, will be executed, which is why task5 is never executed and appears skipped. When the trigger_rule is set to all_success or all_failed for a task, the ...