You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-batch-core/src/main/java/org/springframework/batch/core/repository/support/SimpleJobRepository.java
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -187,6 +187,12 @@ public void update(JobExecution jobExecution) {
187
187
jobExecution.setLastUpdated(LocalDateTime.now());
188
188
189
189
jobExecutionDao.synchronizeStatus(jobExecution);
190
+
if (jobExecution.getStatus() == BatchStatus.STOPPING && jobExecution.getEndTime() != null) {
191
+
if (logger.isInfoEnabled()) {
192
+
logger.info("Upgrading job execution status from STOPPING to STOPPED since it has already ended.");
Copy file name to clipboardExpand all lines: spring-batch-core/src/test/java/org/springframework/batch/core/repository/support/SimpleJobRepositoryTests.java
0 commit comments