ferruzzi commented on code in PR #37264:
URL: https://github.com/apache/airflow/pull/37264#discussion_r1486509364


##########
airflow/www/views.py:
##########
@@ -704,6 +704,12 @@ def render_template(self, *args, **kwargs):
         if TriggererJobRunner.is_needed():
             kwargs["triggerer_job"] = 
lazy_object_proxy.Proxy(TriggererJobRunner.most_recent_job)
 
+        executor, _ = ExecutorLoader.import_default_executor_cls()
+        try:
+            executor().check_health()

Review Comment:
   I do not like this.  I feel like there must be a way to get the current 
health without instantiating a new executor class. 



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to