Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set submit options via config.json #265

Merged
merged 2 commits into from
Jun 21, 2016
Merged

Conversation

Darkless012
Copy link
Contributor

Set additional option and worker/acker count via config.json

Set additional option and worker/acker count via config.json
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 45.135% when pulling 7bfb1f0 on Darkless012:patch-5 into f66794f on Parsely:master.

if isinstance(options, dict):
additional_options.update(options)
options = additional_options
if not workers:
Copy link
Member

Choose a reason for hiding this comment

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

This should never happen, as the defaults for this method set it to 2.

Copy link
Contributor Author

@Darkless012 Darkless012 Jun 6, 2016

Choose a reason for hiding this comment

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

Oh, a brief explanation:
In our custom fork of this file, I've set defaults of the method to None, to be able check if something was passed or not (since there could be passed 2 as well). But it turned out, that it is set to 2, even though the defaults are None.
I wanted to leave precedence to CLI arguments before config.json options, but it turned out, that there is always passed number 2 to this method (from outside), even with no -p (or similar option) used.

So I'm trying to find a way to ensure that defaults < config.json < CLI args.
Which I was not able to do so far.

@dan-blanchard
Copy link
Member

Thanks for the PR! This will definitely come in handy.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 45.166% when pulling 80acf49 on Darkless012:patch-5 into f66794f on Parsely:master.

@dan-blanchard dan-blanchard merged commit 4ae8c6a into pystorm:master Jun 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants