Skip to content

Commit

Permalink
Use jupyter server proxy for dashboard (#24)
Browse files Browse the repository at this point in the history
* Use jupyterlab proxy for dashboard

Per dask/dask-labextension#109 (comment)

* Prioritize our configs

* From root
  • Loading branch information
nsmith- authored Jan 10, 2024
1 parent 6713349 commit 98d1609
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/lpcjobqueue/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@

logger = logging.getLogger(__name__)
fn = os.path.join(os.path.dirname(__file__), "config.yaml")
dask.config.ensure_file(source=fn)

with open(fn) as f:
defaults = yaml.safe_load(f)

dask.config.update(dask.config.config, defaults, priority="old")
dask.config.update(dask.config.config, defaults, priority="new")


def is_venv():
Expand Down
3 changes: 3 additions & 0 deletions src/lpcjobqueue/config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
distributed:
dashboard:
link: "/proxy/{port}/status"
jobqueue:
lpccondor:
name: dask-worker
Expand Down

0 comments on commit 98d1609

Please sign in to comment.