From 86e19959a5cbd91b32306a2e26481d9b2abe1f95 Mon Sep 17 00:00:00 2001 From: SangBin Cho Date: Fri, 27 Mar 2020 09:02:30 -0700 Subject: [PATCH] [Dashboard] Tune dashboard bug fix (#7766) * Figured out why Tune was unavailable. * Minor fix. --- python/ray/dashboard/dashboard.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: