【问题标题】:Schedule interval in airflow安排气流间隔
【发布时间】:2020-12-18 18:56:21
【问题描述】:

我试图弄清楚 dag 间隔是如何工作的。

* * * * *
M H D M Y

时间是 UTC。

示例:

29 21 * * *

这意味着每天 21:29 运行。

我见过一个例子,年份是 4。这是什么意思?

29 21 * * 4

【问题讨论】:

    标签: airflow-scheduler airflow


    【解决方案1】:

    29 21 * * 4 表示星期四 21:29。见crontab guru

    所以以下时间是:

    at 2020-12-17 21:29:00
    then at 2020-12-24 21:29:00
    then at 2020-12-31 21:29:00
    then at 2021-01-07 21:29:00
    then at 2021-01-14 21:29:00
    

    但是 Airflow 不是 crontab。任务的运行基于start_dateinterval。见下文answer

    【讨论】:

      猜你喜欢
      • 2022-07-27
      • 2017-09-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-14
      相关资源
      最近更新 更多