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 2021/01/07 11:43:37 UTC

[GitHub] [airflow] yogyang commented on a change in pull request #13537: Durations less than 1 second are not visible in the TI tooltops

yogyang commented on a change in pull request #13537:
URL: https://github.com/apache/airflow/pull/13537#discussion_r553278034



##########
File path: airflow/www/views.py
##########
@@ -1912,7 +1912,7 @@ def encode_ti(task_instance: Optional[models.TaskInstance]) -> Optional[List]:
                 # round to seconds to reduce payload size
                 task_instance_data[2] = int(task_instance.start_date.timestamp())
                 if task_instance.duration is not None:
-                    task_instance_data[3] = int(task_instance.duration)
+                    task_instance_data[3] = float(task_instance.duration)

Review comment:
       good point.




----------------------------------------------------------------
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