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 2022/04/06 18:05:32 UTC
[GitHub] [airflow] uranusjr commented on a diff in pull request #21106: Fix StatD timing metric units
uranusjr commented on code in PR #21106:
URL: https://github.com/apache/airflow/pull/21106#discussion_r844239646
##########
airflow/sensors/smart_sensor.py:
##########
@@ -738,16 +738,17 @@ def execute(self, context: Context):
for sensor_work in self.sensor_works:
self._execute_sensor_work(sensor_work)
- duration = (timezone.utcnow() - poke_start_time).total_seconds()
+ duration = timezone.utcnow() - poke_start_time
+ duration_seconds = duration.total_seconds()
- self.log.info("Taking %s to execute %s tasks.", duration, len(self.sensor_works))
+ self.log.info("Taking %s to execute %s tasks.", duration_seconds, len(self.sensor_works))
Review Comment:
```suggestion
self.log.info("Taking %s seconds to execute %s tasks.", duration_seconds, len(self.sensor_works))
```
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org