Is execution_date the date of the DAG run or the Task run?

余生长醉 提交于 2021-02-17 06:38:06

问题


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?


回答1:


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.

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.



来源:https://stackoverflow.com/questions/53328700/is-execution-date-the-date-of-the-dag-run-or-the-task-run

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!