airflow - 气流:从 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).
你能帮忙解决这个问题吗?
解决方案
我们最近看到了这个问题,发现我们的调度程序和工作节点上的系统时钟不同步。安装网络时间协议守护进程后,我们的作业开始按预期执行。
在yum
托管系统上:
sudo yum install -y ntp
sudo systemctl enable --now ntpd
推荐阅读
- python - python if else 返回混淆,leetcode 669
- javascript - 调用点击事件时,iOS Safari 移动设备上的文件输入不起作用
- javascript - UnhandledPromiseRejectionWarning:DiscordAPIError:无法发送空消息
- python - 创建主要因素列表的问题(编辑:标题应该说“因素列表”,而不是“主要因素列表”)
- ios - 如何修复 Shell 脚本调用错误 MapFileParser.sh:Xcode 中的权限被拒绝
- excel - 通过 VB 打开一个 excel 文件 - 无法加载文件或程序集
- python - 对于包含多个字符串的大型 .CSV 列是否有任何时间拆分功能?
- swiftui - 如何在 SwiftUI 中通过 ViewBuilder 访问 TupleView?
- python - instancemethod'对象没有属性'return_value'
- windows - 什么是“ms-cxh-full://0.0.135.7”?