'Composer Airflow - Cross DAG Task Dependancy
I have below 2 DAGs and tasks
DAGA - Task1,Task2,Task3
DAGB - Task4,Task5,Task6
Now Task4 & 5 of DAG B depends on Task1 of DAGA and Task6 depends on Task3 but I want this dependency only on Monday and for remaining days I don't want this dependency.
Solution 1:[1]
For this kind of cross dag dependency wherein you want certain tasks of a dag to run on a particular day of the week , use TriggerDagRunOperator along with BranchPythonOperator. This operator function must return a list of task IDs that the DAG should proceed with based on some logic.
Another good link
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | codninja0908 |
