Why Spring batch allows job without parameters to restart even if the job already completed successfullly? #4694
Unanswered
ELMORABITYounes
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Is that really the case? This would be a bug. I did not test that (yet), but if you provide an example I will debug the case. No matter what the user provides, if the set of identifying job parameters ends up being the same (ie same hash), then the same job instance should not be restarted if it was completed in the previous run. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now even if a job was completed successfuly, spring batch allow It to be restarted if It contains no identifying params as shown here:
I am wondering why is that done like this? I mean if the job already completed why It does not throw JobInstanceAlreadyCompleteException? Shouldn't second job instance without param considered the same and hence not allow It to be restarted if already succeeded?
Beta Was this translation helpful? Give feedback.
All reactions