Skip to content

Fixes 'timeout' and 'gather_job_timeout' kwargs parameters for 'local_batch' client - #40300

Merged
rallytime merged 2 commits into
saltstack:2016.3from
meaksh:2016.3-adding-timeouts-parameters-to-cmd_batch
Mar 24, 2017
Merged

rallytime merged 2 commits into
saltstack:2016.3from
meaksh:2016.3-adding-timeouts-parameters-to-cmd_batch

Conversation

@meaksh

@meaksh meaksh commented Mar 24, 2017

Copy link
Copy Markdown
Contributor

What does this PR do?

This PR fixes local_batch client to be aware of timeout and gather_job_timeout parameters when they're coming as kwargs. Same behavior as per local clients.

What issues does this PR fix or reference?

Prior to this PR, timeout and gather_job_timeout supplied via kwargs to LocalClient.cmd_batch() are not being taken in care by the Batch class, so global master timeouts are not bypassed here.

Changes included on this PR handle the custom timeouts kwargs parameters to be used by Batch class and then be able to get the expected behavior for the local_batch client.

Tests written?

No

Fixes 'local_batch' client to be aware of 'timeout' and 'gather_job_timeout' parameters that are coming from kwargs.
@ghost

ghost commented Mar 24, 2017

Copy link
Copy Markdown

@meaksh, thanks for your PR! By analyzing the history of the files in this pull request, we identified @msteed, @thatch45 and @whiteinge to be potential reviewers.

@cachedout cachedout left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@rallytime
rallytime merged commit 7c21153 into saltstack:2016.3 Mar 24, 2017
@meaksh
meaksh deleted the 2016.3-adding-timeouts-parameters-to-cmd_batch branch March 27, 2017 08:11
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.

4 participants