Shlomit-B commented on code in PR #54075:
URL: https://github.com/apache/airflow/pull/54075#discussion_r2254613611


##########
airflow-core/src/airflow/jobs/scheduler_job_runner.py:
##########
@@ -1185,15 +1199,17 @@ def _run_scheduler_loop(self) -> None:
             self._mark_backfills_complete,
         )
 
-        timers.call_regular_interval(
-            conf.getfloat("scheduler", "pool_metrics_interval", fallback=5.0),
-            self._emit_pool_metrics,
-        )
+        if self._is_metrics_enabled() or self._is_tracing_enabled():

Review Comment:
   Unless I'm missing something, these are the only metric-related emissions 
within the scheduler. The rest of the periodic tasks are functional and not 
related to telemetry.



-- 
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-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to