-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the full Python path when using archived environment (#115)
Previously, if an archived environment was provided, we'd generate the following script for running a dask worker: ``` source environment/bin/activate dask-yarn services worker ``` This works fine on most systems, but for some reason fails on some systems. The failure is odd - the `dask-yarn` CLI is properly found, but the `dask_yarn` library fails to be on Python path. This may be due to the shell not being rehashed properly, so the wrong python is used, I'm not sure. It's likely a bug in conda-pack. Either way, specifying the full path to the proper Python fixes things, so we use that here. We now generate the following script: ``` source environment/bin/activate environment/bin/python -m dask_yarn.cli services worker ``` This should work in all cases, even in the presence of a conda-pack bug (which we should still fix).
- Loading branch information
Showing
2 changed files
with
22 additions
and
25 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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