You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/08/28 19:49:02 UTC

[GitHub] [airflow] potiuk commented on a change in pull request #10632: Log task_instance execution duration as milliseconds

potiuk commented on a change in pull request #10632:
URL: https://github.com/apache/airflow/pull/10632#discussion_r479503960



##########
File path: airflow/models/taskinstance.py
##########
@@ -1184,7 +1184,7 @@ def signal_handler(signum, frame):  # pylint: disable=unused-argument
         task_copy.post_execute(context=context, result=result)
 
         end_time = time.time()
-        duration = end_time - start_time
+        duration = timedelta(seconds=end_time - start_time)

Review comment:
       Isn't that microseconds ?




----------------------------------------------------------------
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:
users@infra.apache.org