[Dashboard] Tune dashboard bug fix (#7766)

* Figured out why Tune was unavailable.

* Minor fix.
This commit is contained in:
SangBin Cho
2020-03-27 09:02:30 -07:00
committed by GitHub
parent 6a3503c494
commit 86e19959a5
+3 -1
View File
@@ -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: