mik-laj commented on a change in pull request #4858: [AIRFLOW-4033] record
stats of task duration
URL: https://github.com/apache/airflow/pull/4858#discussion_r263357186
##########
File path: airflow/models/__init__.py
##########
@@ -1400,6 +1403,14 @@ def signal_handler(signum, frame):
task_copy.post_execute(context=context, result=result)
+ end_time = time.time()
+ duration = end_time - start_time
+ Stats.timing(
+ '{dag_id}.{task_id}.duration'.format(
Review comment:
if you have time then I would be happy. However, I do not require it. I gave
the link to show that other things could be corrected in the documentation. I
do not care about finishing my PR.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services