execution_date 是 DAG 运行的日期还是任务运行的日期? [英] Is execution_date the date of the DAG run or the Task run?
问题描述
execution_date
的值是 DAG 运行的时间日期/时间--它的所有任务的值是否相同--或者是 execution_date
(可能)不同 DAG 中的每个任务?
Is the value of execution_date
the time date/time when the DAG ran--and is it the same value for all of its Tasks--or is execution_date
(potentially) different per Task within a DAG?
推荐答案
execution_date
是运行间隔的开始.所有任务都具有与其运行相同的 execution_date
值.这就是它们与代码中的运行相关联的方式.
The execution_date
is the start of the interval for the run. All tasks have the same execution_date
value as their run. It's how they're associated with a run in the code.
这样想:如果您每季度运行一个流程并根据该季度的数据生成一份报告,您会为报告命名为创建文件时所在的季度,还是报告中的数据来自哪个季度?这就是 execution_date
的含义.
Think of it like this: If you ran a process quarterly and generated a report from data for that quarter, would you name the report for the quarter you were in when you created the file, or for the quarter the data in the report is from? That's what the execution_date
is.
这篇关于execution_date 是 DAG 运行的日期还是任务运行的日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!