Skip to content

Commit

Permalink
Clarify in log the unit is seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr authored and viktorvia committed May 23, 2022
1 parent a184c0b commit d6352b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/sensors/smart_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ def execute(self, context: Context):
duration = timezone.utcnow() - poke_start_time
duration_seconds = duration.total_seconds()

self.log.info("Taking %s to execute %s tasks.", duration_seconds, len(self.sensor_works))
self.log.info("Taking %s seconds to execute %s tasks.", duration_seconds, len(self.sensor_works))

Stats.timing("smart_sensor_operator.loop_duration", duration)
Stats.gauge("smart_sensor_operator.executed_tasks", len(self.sensor_works))
Expand Down

0 comments on commit d6352b8

Please sign in to comment.