You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the assumption is made that the dask-worker script is in the same place as the python executable. This is not true in our case since dask is available through an environment module (so the availability of the script is handled via the $PATH envvar).
to verify that this default actually exists and, if not, use the location found in $PATH (otherwise die gracefully)? Something like
if not os.path.isfile(os.path.join(dirname, 'dask-worker'):
if os.path.isfile(os.path.abspath('dask-worker'):
dirname = os.path.join(os.path.abspath('dask-worker'), '..')
else:
# Trigger a graceful death
Or use python -m distributed.cli.dask_worker as was done in dask-drmaahere? I think the context in dask-drmaa was that dask-worker was not found in a user install of dask.
Activity
mrocklin commentedon Jun 25, 2018
lesteve commentedon Jun 26, 2018
Or use
python -m distributed.cli.dask_workeras was done indask-drmaahere? I think the context in dask-drmaa was thatdask-workerwas not found in a user install of dask.ocaisa commentedon Jun 26, 2018
@lesteve That seems like a clean solution and would work for us
ocaisa commentedon Jun 26, 2018
PR #77 tested for our system (feel free to replace it with something else)