This repository was archived by the owner on Feb 10, 2021. It is now read-only.
Repository navigation
Call dask-worker through Python executable - #91
Merged
Merged
Conversation
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.
maxnoe
approved these changes
May 28, 2018
Member
Author
|
Thanks @maxnoe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #88
Alternative to PR ( #89 )
To ensure that the right
dask-workerexecutable is found, make use ofpython -mto search for and run thedistributed.cli.dask_workermodule. This is robust to different install locations or directory layouts as it doesn't care wheredask-workeractually is. Instead it only cares wheredistributedis installed, which has to be accessible from the samepythonrunningdask-drmaa(as it is a dependency). From there it can simply rely onpythonto figure out wheredask_workerlives so that it can run it.cc @maxnoe