Airflow - Branching join operators

夙愿已清 提交于 2021-01-28 22:15:24

问题


I am trying to join branching operators in Airflow

I did this :

op1>>[op2,op3,op4]
op2>>op5
op3>>op6
op4>>op7
[op5,op6,op7]>>op8

It gives a schema like this with relations between op2, op3, op4 and op8.

How do I get this:


回答1:


can you be more clear ? I tried using your chain function and I can do what you wanted.




回答2:


First of all: can you be more specific as to the exact code you use to set the relationships between the tasks?

Second: you could try using the chain function. If you look at the last example in the relationship-builders section, that should be pretty much what you are trying to achieve right?

Third: you can use airflow show_dag to easily visualize your dag.



来源:https://stackoverflow.com/questions/60675007/airflow-branching-join-operators

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!