I'm using kwargs['execution_date'] for getting the execution date of dag but it gives the time when the overall dag is invoked, but i need the time where a particular task is started and ended in airflow.
0
votes
2 Answers
0
votes
- Use
get_task_instance()utility function to obtain aTaskInstance - From
TaskInstanceobject, you can getstart_date&end_date
As a sidenote, the context / kwargs do contain end_date & END_DATE (nodash-format), but not start_date