Tuesday, 24 February 2026

Airflow - DAG Dependencies

  • Define the order in which tasks should run
  • Tasks can be upstream (run before) or downstream (run after)
  • Declared after creating the tasks
Methods to declare

  • Recommended
task1>>task2>>[task3,task4]
  • Alternative
task1.set_downstream(task2)
task3.set_upstream(task2)

No comments:

Airflow - DAG Dependencies

Define the order in which tasks should run Tasks can be upstream (run before) or downstream (run after) Declared after creating the tasks Me...