understanding the tree view in apache airflow

前端 未结 2 1646
生来不讨喜
生来不讨喜 2021-01-22 04:39

I setup the dag from the https://airflow.apache.org/tutorial.html as is, the only change being that I have set the dag to run at an interval of 5 minutes with a start date of 20

相关标签:
2条回答
  • 2021-01-22 05:15

    They are not separate instances. You can see this:

    1. In Tree View, the start/end dates and duration of both circles will be exactly the same.

    2. In Gantt view, you will see the duration for only a single instance of print_date.

    In general, you can't map a DAG to a tree view without duplicating nodes like they've done.

    0 讨论(0)
  • 2021-01-22 05:16

    1.Yes, they are separate tasks. To make sure that there is only one print_date, you can do:

    t1 >> t2 >> t3
    

    instead of

    t2.set_upstream(t1)
    t3.set_upstream(t1) 
    

    You can change the order as per your workflow.

    2.On my machine, those green dots display the time of the scheduled run in UTC. Are you sure that's not in your database timezone?

    0 讨论(0)
提交回复
热议问题