I am reading this question trying to implement dependencies on tasks of other DAG
s. In this example, dependency is written as:
ExternalTaskSensor(
task_id='wait_for_the_first_task_to_be_completed',
external_dag_id='a',
external_task_id='first_task',
dag=dag) >> \
In my data warehouse, one table may depends on hundreds of tasks. Using this format, it will generate 2*number of dependencies
lines of codes. This is really unacceptable, is there any better choice?
For instance, in Azkaban
, I can write multi dependencies like this:
dependencies = dag1.task1, dag2.task4, dag2.task5, DAG3.task2, etc...
Any help is appreciated.