Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
* @author Will Schipp
* @author Michael Minella
* @author Mahmoud Ben Hassine
* @author Seungyong Hong
* @since 1.0
* @see JobRepository
* @see TaskExecutor
Expand Down Expand Up @@ -144,8 +145,7 @@ private JobExecution createJobExecution(Job job, JobParameters jobParameters)
JobParameters allJobParameters = execution.getJobParameters();
JobParameters identifyingJobParameters = new JobParameters(
allJobParameters.getIdentifyingParameters());
if (!identifyingJobParameters.isEmpty()
&& (status == BatchStatus.COMPLETED || status == BatchStatus.ABANDONED)) {
if (status == BatchStatus.COMPLETED || status == BatchStatus.ABANDONED) {
throw new JobInstanceAlreadyCompleteException(
"A job instance already exists and is complete for identifying parameters="
+ identifyingJobParameters + ". If you want to run this job again, "
Expand Down