【问题标题】:airflow metabase the column end_date in table dag_run is null气流元数据库表 dag_run 中的列 end_date 为空
【发布时间】:2018-02-11 02:15:10
【问题描述】:

环境:1.8.2

气流元数据库 表:dag_run 列:结束日期
end_date 列的 99% 值:为空 end_date 列的 1% 值:不为空

问: 为什么?有什么想法/设置可以解决这种情况吗?

【问题讨论】:

    标签: instance airflow directed-acyclic-graphs metabase


    【解决方案1】:

    看起来代码中只有两个地方设置了 dag 运行结束日期。当 dag 运行 hits the timeoutset a dag run to failed/success in the UI 时。

    如果您想解决此问题,我会查看 DagRun 类的 update_state 方法,并在运行设置为终止状态时设置结束日期。当然,您应该将您的更改提交到 github 的 PR!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-12-28
      • 1970-01-01
      • 1970-01-01
      • 2022-08-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多