Repository navigation
Change bokeh port keywords to dashboard_address - #2589
Conversation
|
cc @jhamman @guillaumeeb for HPC |
eb94d6d to
369d824
Compare
guillaumeeb
left a comment
There was a problem hiding this comment.
I am completly in favor of this change.
Not sure if deprecation and backward compatibility is totally handled, did not look at test results.
| @click.option('--bokeh-port', type=int, default=0, | ||
| help="Bokeh port, defaults to random port") | ||
| help="Deprecated. See --dashboard-address") | ||
| @click.option('--dashboard-address', type=str, default=':8787', |
There was a problem hiding this comment.
That's a change in default behavior, but I guess it's okay.
| 'localhost:8787' or '0.0.0.0:8787'. Defaults to ':8787'. | ||
| diagnostics_port: int | ||
| Port on which the :doc:`web` will be provided. 8787 by default, use 0 | ||
| to choose a random port, ``None`` to disable it, or an |
There was a problem hiding this comment.
Can we still disable bokeh with new kwarg?
There was a problem hiding this comment.
Yes, added in the docstring.
| IP address on which the scheduler will listen, defaults to only localhost | ||
| dashboard_address: str | ||
| Address on which to listen for the Bokeh diagnostics server like | ||
| 'localhost:8787' or '0.0.0.0:8787'. Defaults to ':8787'. |
There was a problem hiding this comment.
Do we want an exemple with 0 port for random choice?
| "The --bokeh-port flag has been renamed to --dashboard-address. " | ||
| "Consider adding ``--dashboard-address :%d`` " % bokeh_port | ||
| ) | ||
| dashboard_address = bokeh_port |
There was a problem hiding this comment.
Don't we need a semicolon before the port?
There was a problem hiding this comment.
This should still be valid. We still support many possible argument types for now.
| "diagnostics_port has been deprecated. " | ||
| "Please use `dashboard_address=` instead" | ||
| ) | ||
| dashboard_address = diagnostics_port |
There was a problem hiding this comment.
Diagnostic port can be a tuple.
There was a problem hiding this comment.
This should still be valid. We still support many possible argument types for now.
| def test_duplicate_clients(): | ||
| pytest.importorskip('bokeh') | ||
| c1 = yield Client(processes=False, silence_logs=False, diagnostics_port=9876) | ||
| c1 = yield Client(processes=False, silence_logs=False, dashboard_address=9876) |
There was a problem hiding this comment.
As above, this should still be valid. We still support many possible argument types for now.
|
Thanks for the review @guillaumeeb ! |
03bc162 to
5c1ace4
Compare
* upstream/master: Add RabbitMQ SchedulerPlugin example (dask#2604) add resources to scheduler update_graph plugin (dask#2603) Use ensure_bytes in serialize_error (dask#2588) Specify data storage explicitly from Worker constructor (dask#2600) Change bokeh port keywords to dashboard_address (dask#2589) .detach_() pytorch tensor to serialize data as numpy array. (dask#2586) Add warning if creating scratch directories takes a long time (dask#2561) Fix typo in pub-sub doc. (dask#2599) Allow return_when='FIRST_COMPLETED' in wait (dask#2598) Forward kwargs through Nanny to Worker (dask#2596)
This has the following benefits: