Skip to content
This repository was archived by the owner on Feb 10, 2021. It is now read-only.

Call dask-worker through Python executable - #91

Merged
jakirkham merged 1 commit into
dask:masterfrom
jakirkham:use_python_-m_dask_worker
May 29, 2018
Merged

jakirkham merged 1 commit into
dask:masterfrom
jakirkham:use_python_-m_dask_worker

Conversation

@jakirkham

Copy link
Copy Markdown
Member

Fixes #88
Alternative to PR ( #89 )

To ensure that the right dask-worker executable is found, make use of python -m to search for and run the distributed.cli.dask_worker module. This is robust to different install locations or directory layouts as it doesn't care where dask-worker actually is. Instead it only cares where distributed is installed, which has to be accessible from the same python running dask-drmaa (as it is a dependency). From there it can simply rely on python to figure out where dask_worker lives so that it can run it.

cc @maxnoe

To ensure that the right `dask-worker` executable is found, make use of
`python -m` to search for and run the `distributed.cli.dask_worker`
module. This is robust to different install locations or directory
layouts as it doesn't care where `dask-worker` actually is. Instead it
only cares where `distributed` is installed, which has to be accessible
from the same `python` running `dask-drmaa` (as it is a dependency).
From there it can simply rely on `python` to figure out where
`dask_worker` lives so that it can run it.
@jakirkham

Copy link
Copy Markdown
Member Author

Thanks @maxnoe

@jakirkham
jakirkham merged commit 0a1bbce into dask:master May 29, 2018
@jakirkham
jakirkham deleted the use_python_-m_dask_worker branch May 29, 2018 18:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants