Skip to content

install vanilla status route if bokeh dependency is not satisfied - #3844

Merged
quasiben merged 8 commits into
dask:masterfrom
joshreback:error-message-missing-bokeh
Jun 29, 2020
Merged

quasiben merged 8 commits into
dask:masterfrom
joshreback:error-message-missing-bokeh

Conversation

@joshreback

@joshreback joshreback commented May 31, 2020 •

Copy link
Copy Markdown
Contributor

Fixes #3836

Not entirely sure how to test this..

@jacobtomlinson

Copy link
Copy Markdown
Member

Tested locally on my Mac in a fesh conda environment and it seems to be working.

image

I'm not sure if the CI failures are related. I've restarted them.

I also noticed that just visiting http://localhost:8787/ results in a 404. I personally would expect this to still redirect to /status and then show the bokeh warning.

Is the failure to redirect also a result of Bokeh missing?

@joshreback

Copy link
Copy Markdown
Contributor Author

@jacobtomlinson oh good point. I didn't think of the root route. I'll need to append that route - in addition to /status - to the tornado server to show this page if bokeh is not installed.

@joshreback

Copy link
Copy Markdown
Contributor Author

I pushed a new commit that shows this page for both /status and / if bokeh is not installed...I'm not sure what to make of the CI failure though. The failure - distributed\cli\tests\test_dask_worker.py:135: AssertionError- didn't fail when i ran that test locally.

@mrocklin

mrocklin commented Jun 3, 2020

Copy link
Copy Markdown
Member

In principle this seems fine to me. Thank you @joshreback .

The test failures here are odd. They don't seem related, but they are popping up more frequently than I would expect. I'm sending up a test PR here to see if this is on master. #3850

@jacobtomlinson

Copy link
Copy Markdown
Member

It does seem to be test_no_nanny which is consistently failing on Windows with this change.

@joshreback
joshreback marked this pull request as draft June 7, 2020 15:08
@joshreback
joshreback marked this pull request as ready for review June 14, 2020 22:18
@joshreback

joshreback commented Jun 14, 2020 •

Copy link
Copy Markdown
Contributor Author

The test_no_nanny test failed consistently on Windows w/Python version 3.6. I could not track down exactly why but it seemed to be due to double-importing distributed.dashboard.scheduler.

So I reworked the approach a bit to put the backup status routes in a different file, and only install those routes if the dashboard params were set and bokeh was not installed.

@joshreback

Copy link
Copy Markdown
Contributor Author

Hi @mrocklin / @jacobtomlinson just wanted to follow up to see if there's any feedback on this one. Looks like it is now passing in CI.

@mrocklin

mrocklin commented Jun 20, 2020 via email

Copy link
Copy Markdown
Member

@quasiben

Copy link
Copy Markdown
Member

Also tested and works for me. I'll merge in tomorrow morning unless @mrocklin has more thoughts

@joshreback

Copy link
Copy Markdown
Contributor Author

@quasiben anything further to do here?

@quasiben

Copy link
Copy Markdown
Member

Thank you for the ping. Sorry, merging now.

@quasiben
quasiben merged commit b4d3a56 into dask:master Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Display informative message if attempting to use the dashboard and bokeh isn't installed

4 participants