Airflow : ExternalTaskSensor doesn't trigger the task

后端 未结 4 1868
被撕碎了的回忆
被撕碎了的回忆 2020-12-20 19:10

I have already seen this and this questions on SO and made the changes accordingly. However, my dependent DAG still gets stuck in poking state. Below is my master DAG:

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-20 19:36

    I had this problem because of a summer/winter time change: "1 day before" means "exactly 24 hours before" so if the time zone has daylight savings time change in between, the DAG is stuck.

    One way out of this is to manually set it as successful.

    The other way would be to use the execution_date_fn argument and manually calculate the time difference correctly in this case.

提交回复
热议问题