diff --git a/python/ray/dashboard/dashboard.py b/python/ray/dashboard/dashboard.py index 88d52d453..c53682ad1 100644 --- a/python/ray/dashboard/dashboard.py +++ b/python/ray/dashboard/dashboard.py @@ -259,6 +259,8 @@ class DashboardController(BaseDashboardController): def start_collecting_metrics(self): self.node_stats.start() self.raylet_stats.start() + if Analysis is not None: + self.tune_stats.start() class DashboardRouteHandler(BaseDashboardRouteHandler): @@ -270,7 +272,7 @@ class DashboardRouteHandler(BaseDashboardRouteHandler): def forbidden(self) -> aiohttp.web.Response: return aiohttp.web.Response(status=403, text="403 Forbidden") - def get_forbidden(self, _) -> aiohttp.web.Response: + async def get_forbidden(self, _) -> aiohttp.web.Response: return self.forbidden() async def get_index(self, req) -> aiohttp.web.Response: