From c2578facdb8730004277c3e9bee7e059f5e98a93 Mon Sep 17 00:00:00 2001 From: busya Date: Fri, 5 Jun 2026 00:14:15 +0300 Subject: [PATCH] =?UTF-8?q?032:=20fix=20health=5Fservice=20=5Fprime=5Fdash?= =?UTF-8?q?board=5Fmeta=5Fcache=20=E2=80=94=20async=20get=5Fdashboards=5Fs?= =?UTF-8?q?ummary?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit _prime_dashboard_meta_cache was sync but called async get_dashboards_summary(). Parent get_health_summary was already async def. Made child async + added awaits. --- backend/src/services/health_service.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/services/health_service.py b/backend/src/services/health_service.py index b2832737..a019af32 100644 --- a/backend/src/services/health_service.py +++ b/backend/src/services/health_service.py @@ -72,7 +72,7 @@ class HealthService: # @RELATION DEPENDS_ON ->[ValidationRecord] # @RELATION DEPENDS_ON ->[ConfigManager] # @RELATION DEPENDS_ON ->[SupersetClient] - def _prime_dashboard_meta_cache(self, records: list[ValidationRecord]) -> None: + async def _prime_dashboard_meta_cache(self, records: list[ValidationRecord]) -> None: if not self.config_manager or not records: return @@ -121,7 +121,7 @@ class HealthService: ) dashboard_meta_map = cached_meta_data[1] else: - dashboards = SupersetClient(env).get_dashboards_summary() + dashboards = await SupersetClient(env).get_dashboards_summary() dashboard_meta_map = { str(item.get("id")): { "slug": item.get("slug"), @@ -221,7 +221,7 @@ class HealthService: records = query.all() - self._prime_dashboard_meta_cache(records) + await self._prime_dashboard_meta_cache(records) items = [] pass_count = 0