Skip to content

Commit c8b0a5a

Browse files
committed
Remove unnecessary job execution update when creating step executions in SimpleJobRepository
Resolves #5022
1 parent ddf34d3 commit c8b0a5a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/repository/support/SimpleJobRepository.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ public StepExecution createStepExecution(String stepName, JobExecution jobExecut
125125
ecDao.saveExecutionContext(stepExecution);
126126
jobExecution.addStepExecution(stepExecution);
127127

128-
// TODO check if this update is necessary
129-
jobExecutionDao.updateJobExecution(jobExecution);
130128
return stepExecution;
131129
}
132130

0 commit comments

Comments
 (0)