Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions chapter05/dags/04_branch_dag_join.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def _clean_sales_new(**context):
task_id="clean_sales_new", python_callable=_clean_sales_new
)

join_erp = DummyOperator(task_id="join_erp_branch", trigger_rule="none_failed")
join_erp_branch = DummyOperator(task_id="join_erp_branch", trigger_rule="none_failed")

fetch_weather = DummyOperator(task_id="fetch_weather")
clean_weather = DummyOperator(task_id="clean_weather")
Expand All @@ -68,7 +68,7 @@ def _clean_sales_new(**context):
pick_erp_system >> [fetch_sales_old, fetch_sales_new]
fetch_sales_old >> clean_sales_old
fetch_sales_new >> clean_sales_new
[clean_sales_old, clean_sales_new] >> join_erp
[clean_sales_old, clean_sales_new] >> join_erp_branch
fetch_weather >> clean_weather
[join_erp, clean_weather] >> join_datasets
[join_erp_branch, clean_weather] >> join_datasets
join_datasets >> train_model >> deploy_model