gpt4 book ai didi

ubuntu - 防止禁用的 DAG 在启用时立即运行

转载 作者:行者123 更新时间:2023-12-04 13:35:25 24 4
gpt4 key购买 nike

在 Airflow 1.10.10 中,当禁用的 DAG 通过按下按钮将其状态从 Off 更改为启用时至On ,DAG 将始终在下一个计划运行时间之前运行一次。

enter image description here

是否可以将 DAG 设置为启用,但要等到下次计划运行时才进行第一次运行?

目前,在将 DAG 的状态切换为 On 后,我需要快速终止 DAG 运行。 .

最佳答案

您应该将 start_date (即 datetime )设置为 now 之后的值.

根据the docs

  • 第一个 DAG 运行是根据
    DAG 中的任务。
  • 后续 DAG 运行由调度程序创建
    根据 DAG 的 schedule_interval 顺序处理。
  • 关于ubuntu - 防止禁用的 DAG 在启用时立即运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62418344/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com