【问题标题】:Airflow: Execution date is in future when triggering manually from web-ui气流:从 web-ui 手动触发时,执行日期为将来
【发布时间】:2020-02-26 06:46:05
【问题描述】:

我已将 Airflow 升级到 v1.10.7。

DAG 任务在预定时间运行时成功。但是当我在 UI 中触发 DAG 时,任务失败。

dag start_date 定义为 1 年前和追赶集 False。

检查任务日志并观察到几纳秒的差异导致了问题。

{taskinstance.py:649} INFO - Dependencies not met for <TaskInstance: dag1.task1 2020-02-26T06:07:00.708296+00:00 [queued]>, dependency 'Execution Date'
 FAILED: Execution date 2020-02-26T06:07:00.708296+00:00 is in the future (the current date is 2020-02-26T06:06:31.997784+00:00).

请您帮忙解决这个问题。

【问题讨论】:

    标签: airflow airflow-scheduler


    【解决方案1】:

    我们最近看到了这个问题,发现我们的调度程序和工作节点上的系统时钟不同步。安装网络时间协议守护进程后,我们的作业开始按预期执行。

    yum 托管系统上:

    sudo yum install -y ntp
    sudo systemctl enable --now ntpd
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-07-18
      • 2021-05-08
      • 2018-05-28
      • 2021-01-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多