气流回填DAG时无任务状态的任务

时间:2017-08-23 15:07:45

标签: airflow directed-acyclic-graphs

我的DAG的start_date是:

'start_date': datetime.now().replace(second=0, microsecond=0)-timedelta(hour=6, minutes=(datetime.now().minute % 30)),

和我给回填的命令:

airflow backfill dag_id -s 2017-08-23T18:30:00 -e 2017-08-23T19:00:00

现在是未来的时间(2017-08-23T22:00:00)

我的DAG有两个任务(A和B),A取决于B. 任务A成功运行,但任务B保持无状态,并且在任务详细信息的UI中:

The execution date is 2017-08-23T18:30:00 but this is before the task's start date 2017-08-23T22:00:00.

为什么开始日期不是用回填的cli命令指定的日期,而是DAG定义中的日期?

编辑2017-08-28

回填用于在dag的start_date之前创建dag实例。

airflow clear dag_id 
应该使用

来清除db中dag的状态并再次运行

0 个答案:

没有答案
相关问题