为什么气流每天跳过一天? [英] Why does airflow skips a day for a daily dag?
问题描述
我有一个新创建的每日 dag,我昨天(1 月 25 日)设置了它,一旦它被气流加载,我就可以看到它运行一次 (scheduled_2021-0124T00:00:00+00:00),然后我手动触发了一次,看看它是否有效(manual_2021-01-25).
I have a newly created daily dag and I have set it up yesterday (Jan. 25th), once it is loaded by airflow I can see it is run once (scheduled_2021-0124T00:00:00+00:00), and then I manually triggered it once just to see if it works and it did (manual_2021-01-25).
现在时间是 UTC 时间 1 月 26 日 08:24.但是我没有看到 01-25 的任何运行.我使用了 airflow dags next-execution
并发现气流计划直接在 01-26 执行 dag,可能在 01-27 00:00 UTC.所以它会完全跳过 01-25.
Now time is 08:24 UTC Jan 26th. But I did not see any run for 01-25. I have used airflow dags next-execution
and found out airflow is planning to execute the dag for 01-26 directly, possibly on 01-27 00:00 UTC. So it will skip 01-25 entirely.
我想知道为什么会有这种行为?这背后有什么原因吗?
I am wondering why this behaviour? Is there any reason behind this?
推荐答案
这实际上是 Airflow 2.0.0 版本中的一个错误,在 2.0.1 中已修复:https://github.com/apache/airflow/issues/13434
This is actually a bug in Airflow 2.0.0 release which was fixed in 2.0.1: https://github.com/apache/airflow/issues/13434
这篇关于为什么气流每天跳过一天?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!