Skip to content

Instantly share code, notes, and snippets.

@kaxil
Last active December 25, 2018 19:07
Show Gist options
  • Save kaxil/e45e07eadf8dbfc77157c56a8dc95b81 to your computer and use it in GitHub Desktop.
Save kaxil/e45e07eadf8dbfc77157c56a8dc95b81 to your computer and use it in GitHub Desktop.
Using List to set Airflow Task Dependencies
# Setting task dependencies (the NORMAL way)
task_one >> task_two
task_two >> task_two_1 >> end
task_two >> task_two_2 >> end
task_two >> task_two_3 >> end
# Using Lists (being a PRO :-D )
task_one >> task_two >> [task_two_1, task_two_2, task_two_3] >> end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment