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

restart a completed job with same parameters [BATCH-2830] #784

Closed
spring-issuemaster opened this issue Jul 12, 2019 · 2 comments
Closed

restart a completed job with same parameters [BATCH-2830] #784

spring-issuemaster opened this issue Jul 12, 2019 · 2 comments

Comments

@spring-issuemaster
Copy link
Collaborator

@spring-issuemaster spring-issuemaster commented Jul 12, 2019

JunGyun Lee opened BATCH-2830 and commented

is it possible to restart the completed job with same parameters in spring-batch?

I customized spring-batch framework to accept the user request. (restarting a completed job with same parameters)
If it is possible to restart the completed job with same parameters, can I provide Github Pull Reqeust as an improvement?


Affects: 4.2.0.M2

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

@spring-issuemaster spring-issuemaster commented Oct 18, 2019

Mahmoud Ben Hassine commented

No that's not possible by design: if a job instance is complete, it cannot be started again. If you try to restart a job with the same (identifying) parameters, you will get the same job instance, and if the instance is complete, you will get a JobInstanceAlreadyCompleteException.

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

@spring-issuemaster spring-issuemaster commented Oct 27, 2019

JunGyun Lee commented

Thank you for your reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.