Airflow: changing the crontab time for a DAG in Airflow

后端 未结 4 2215
灰色年华
灰色年华 2020-12-06 05:49

I have a DAG that has been running everyday at 3:00, it ran OK for the past few weeks.

I\'ve updated the date to run now at 7:00, but apparently for the last 2 days

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-06 06:46

    An alternative solution to renaming the DAG is to edit the execution_date of all prior task instances and DAG runs of the DAG in the database. The tables to alter are task_instance and dag_run respectively.

    One of the downsides of this approach is that you will lose the ability to browse logs of completed tasks through the webserver.

提交回复
热议问题