首页 > 解决方案 > 气流:从 web-ui 手动触发时,执行日期是将来

问题描述

我已将 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).

你能帮忙解决这个问题吗?

标签: airflowairflow-scheduler

解决方案


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

yum托管系统上:

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

推荐阅读