Skip to content

Make JobParametersBuilder#getNextJobParameters consistent with CommandLineJobRunner and JobOperator #660

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

Closed
wants to merge 1 commit into from

Conversation

fmbenhassine
Copy link
Contributor

@fmbenhassine fmbenhassine commented Oct 22, 2018

This PR resolves BATCH-2711.

Before this commit, JobParametersBuilder#getNextJobParameters was checking for restartability conditions. This is not only already done by the JobLauncher, but also makes it inconsistent with the behaviour of CommandLineJobRunner when used with "-next" option and JobOperator#startNextInstance, which is starting the next instance in sequence based on the incrementer without dealing with restartability.

This commit fixes the JobParametersBuilder#getNextJobParameters to behave like the CommandLineJobRunner and JobOperator in regards to starting the next instance.

This PR is coupled with another PR against boot. Both PRs should be merged together to correctly fix the issue.

…dLineJobRunner and JobOperator

Before this commit, JobParametersBuilder#getNextJobParameters was checking
for restartability conditions. This is not only already done by the
JobLauncher, but also makes it inconsistent with the behaviour of
CommandLineJobRunner when used with "-next" option and
JobOperator#startNextInstance, which is starting the next instance in
sequence based on the incrementer without dealing with restartability.

This commit fixes the JobParametersBuilder#getNextJobParameters to behave
like the CommandLineJobRunner and JobOperator in regards to starting
the next instance.

Resolves BATCH-2711
@philwebb
Copy link
Member

Any chance of merging this soon? I'd like to get the Spring Boot PR in.

@fmbenhassine
Copy link
Contributor Author

@philwebb This PR has been merged as ebf156d by @mminella to the master branch (for boot 2.1) and backported to 4.0.x as 5328fb2 (for boot 2.0.x).

@fmbenhassine fmbenhassine deleted the BATCH-2711 branch October 26, 2018 20:42
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.

3 participants