dask / distributed

A distributed task scheduler for Dask
https://distributed.dask.org
BSD 3-Clause "New" or "Revised" License
1.58k stars 718 forks source link

dask-scheduler --no-dashboard outputs a dashboard URL and starts a webserver #5634

Open lesteve opened 2 years ago

lesteve commented 2 years ago

Running dask-scheduler --no-dashboard still outputs a dashboard URL and runs a webserver.

What happened:

Execute the following command in a terminal:

dask-scheduler --no-dashboard

Output shows a dashboard URL in the last line:

distributed.scheduler - INFO - -----------------------------------------------
distributed.scheduler - INFO - -----------------------------------------------
distributed.scheduler - INFO - Clear task state
distributed.scheduler - INFO -   Scheduler at:   tcp://192.168.0.11:8786
distributed.scheduler - INFO -   dashboard at:                     :8787

Going to localhost:8787 you get a 404 image

What you expected to happen:

I was expecting no dashboard URL to be shown in the output and no webserver to be started when using --no-dashboard.

Anything else we need to know?:

I have a possible fix ready with test, but I thought I would open an issue first, in case there was a good reason for this behaviour I may have missed. For now, I can two main options:

Another possible option:

Edit: dask-worker --no-dashboard has a similar behaviour but this can be left for another issue / PR.

Environment:

quasiben commented 2 years ago

I don't know any historical reason why a webserver is started when the --no-dashboard is used. However, I like the third option of making the 404 more informative rather than not starting any webserver at all