Skip to content

Find dask-worker through the interpreter rather than assume a location - #77

Merged
lesteve merged 8 commits into
dask:masterfrom
ocaisa:master
Jun 26, 2018
Merged

lesteve merged 8 commits into
dask:masterfrom
ocaisa:master

Conversation

@ocaisa

@ocaisa ocaisa commented Jun 26, 2018 •

Copy link
Copy Markdown
Member

Fixes #75 (at least for our system)

@lesteve

lesteve commented Jun 26, 2018

Copy link
Copy Markdown
Member

To fix the CI failures, I think we do look for python -m distributed.cli.dask_worker and not dask-worker in the script.

@ocaisa

ocaisa commented Jun 26, 2018

Copy link
Copy Markdown
Member Author

Thanks, they are passing again now. I left out python just to leave some flexibility there.

@lesteve

lesteve commented Jun 26, 2018

Copy link
Copy Markdown
Member

Thanks a lot for fixing the tests!

I left out python just to leave some flexibility there.

Can you elaborate what you mean by "some flexibility"? I would be in favour of putting python back because I can't see a good reason for leaving it out.

Other than this the change looks fine to me. @mrocklin any opinions on this?

@ocaisa

ocaisa commented Jun 26, 2018

Copy link
Copy Markdown
Member Author

It assumes that sys.executable is python as opposed to python2 or python3 but maybe that's not relevant for the tests. NP, I'll put it back in.

@lesteve

lesteve commented Jun 26, 2018

Copy link
Copy Markdown
Member

Ah good point, look for {} -m distributed.cli.dask_worker'.format(sys.executable) in the tests then.

@guillaumeeb guillaumeeb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works perfectly on our PBS cluster, everything looks good to me. Thanks @ocaisa.

We just have to wait for the tests to end properly.

@lesteve

lesteve commented Jun 26, 2018

Copy link
Copy Markdown
Member

I pushed some minor tweaks, hopefully you don't mind @ocaisa! Let's see whether the CIs are happy with that.

@lesteve

lesteve commented Jun 26, 2018 •

Copy link
Copy Markdown
Member

Small tip for next time @ocaisa while I am at it: best practice is to use a different branch than master to create a PR. Basically the only reason you want to touch your master branch is to bring it up-to-date with upstream.

@ocaisa

ocaisa commented Jun 26, 2018

Copy link
Copy Markdown
Member Author

Sure, improvements welcome!

@ocaisa

ocaisa commented Jun 26, 2018

Copy link
Copy Markdown
Member Author

@lesteve Yes, sorry, I was being lazy, I didn't think it would be getting merged, it was initially just a proof of concept

@lesteve

lesteve commented Jun 26, 2018

Copy link
Copy Markdown
Member

I am going to merge this one, thanks a lot @ocaisa!

@lesteve
lesteve merged commit 13016ae into dask:master Jun 26, 2018
@guillaumeeb guillaumeeb mentioned this pull request Mar 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants