IKH

Trigger Rules

In this segment, you will learn about trigger rules.

Let’s watch the upcoming video in which Ajay will introduce this concept.

In the video, you learnt about trigger rules. 

Your learnings can be summarised as follows:

  • In general, a task is triggered when all directly upstream tasks have succeeded, but Airflow allows for more complex dependency settings.
  • All operators have a trigger_rule argument that decides when the task will get triggered.
  • By default, trigger_rule = all_success.
  • Some common trigger_rule values are as follows:
    • all_failed
    • all_done
    • one_success
    • none_failed
    • none_failed_or_skipped

In the next segment, you will understand how monitoring and alerting is done in Airflow.

Additional Reading

Trigger Rules: Official documentation on trigger rules

Report an error