Skip to content

Handle dask-worker command args and extra kwargs as a list - #160

Merged
guillaumeeb merged 8 commits into
dask:masterfrom
guillaumeeb:add_space_extra
Sep 25, 2018
Merged

Handle dask-worker command args and extra kwargs as a list#160
guillaumeeb merged 8 commits into
dask:masterfrom
guillaumeeb:add_space_extra

Conversation

@guillaumeeb

Copy link
Copy Markdown
Member

Fixes #156

@willirath

Copy link
Copy Markdown
Collaborator

Just a comment that is beyond the scope of this PR: Keeping track of all the CLI args to dask-worker in a list_of_all_args (see the recommended way of passing args to subprocess) and eventually do " ".join(list_of_all_args) would be a general way of solving this.

@guillaumeeb

Copy link
Copy Markdown
Member Author

@willirath this would probably be cleaner yes, but should we change the extra constructor kwargs to be also a list then?

@willirath

Copy link
Copy Markdown
Collaborator

but should we change the extra constructor kwargs to be also a list then?

My personal feeling says: Yes, passing CLI args as a sequence is standard any way. But I'm not sure if that's representative.

@guillaumeeb

Copy link
Copy Markdown
Member Author

Okay, so I chose to follow your suggestion @willirath.

@guillaumeeb guillaumeeb changed the title Add a default space before extra options in dask command line Handle dask-worker command args and extra kwargs as a list Sep 24, 2018
@guillaumeeb

Copy link
Copy Markdown
Member Author

Travis was also having a difficult monday apprently.

@guillaumeeb

Copy link
Copy Markdown
Member Author

@willirath, since you've made the comment about using a list of args, a review would be welcome!

@willirath willirath left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think, the default config also has to be adapted:

@willirath willirath left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

And the interface is stil set as a string:

extra += ' --interface %s ' % interface

This should be

extra += [' --interface', interface]

Edit: Typo in second list item.

@guillaumeeb

Copy link
Copy Markdown
Member Author

Few, thanks for that @willirath, no real testing from my part before your comments... Glad you saw those mistakes.

@willirath willirath left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good!

@guillaumeeb

Copy link
Copy Markdown
Member Author

Thanks @willirath, feel free to take a look at other PR/issues if you find the time. It could be nice to have another core maintainer.

@guillaumeeb
guillaumeeb merged commit 4ec41e5 into dask:master Sep 25, 2018
@willirath

Copy link
Copy Markdown
Collaborator

Thanks @willirath, feel free to take a look at other PR/issues if you find the time. It could be nice to have another core maintainer.

Sounds good. I'm not sure I'll have much time for continuous work. But it sure looks like dask clusters and dask-jobqueue will play a increasingly role in my and my group's routine work. So count me in!

@guillaumeeb

Copy link
Copy Markdown
Member Author

Nice !

We're all on the same situation about time 🙂 !

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.

2 participants