Skip to content

Commit

Permalink
Test fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbourbeau committed Jul 3, 2024
1 parent 676b0e5 commit 880b82b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions distributed/http/scheduler/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@

logger = logging.getLogger(__name__)

API_ENABLED = "distributed.http.scheduler.api" in dask.config.get(
"distributed.scheduler.http.routes"
)


class Workers(RequestHandler):
@log_errors
Expand All @@ -41,8 +45,7 @@ def get(self):
"workers.html",
title="Workers",
scheduler=self.server,
api_enabled="distributed.http.scheduler.api"
in dask.config.get("distributed.scheduler.http.routes"),
api_enabled=API_ENABLED,
**merge(
self.server.__dict__,
self.server.__pdict__,
Expand All @@ -65,6 +68,7 @@ def get(self, worker):
"worker.html",
title="Worker: " + worker,
scheduler=self.server,
api_enabled=API_ENABLED,
Worker=worker,
**merge(
self.server.__dict__,
Expand Down Expand Up @@ -137,6 +141,7 @@ def get(self, task: str) -> None:
title=f"Task: {key!r}",
Task=key,
scheduler=self.server,
api_enabled=API_ENABLED,
**merge(
self.server.__dict__,
self.server.__pdict__,
Expand Down

0 comments on commit 880b82b

Please sign in to comment.