if TriggererJobRunner.is_needed():
            kwargs["triggerer_job"] = lazy_object_proxy.Proxy(TriggererJobRunner.most_recent_job)
        return super().render_template(
            *args,
            
            scheduler_job=lazy_object_proxy.Proxy(SchedulerJobRunner.most_recent_job),
            **kwargs,
        )
class Airflow(AirflowBaseView):
    """Main Airflow application."""
    @expose("/health")
    def health(self):
        """
        An endpoint helping check the health status of the Airflow instance.
        Includes metadatabase, scheduler and triggerer.
        """
        airflow_health_status = get_airflow_health()
        return flask.json.jsonify(airflow_health_status)
    @expose("/home")
    @auth.has_access(
        [
            (permissions.ACTION_CAN_READ, permissions.RESOURCE_WEBSITE),
        ]
    )
    def index(self):