We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db6ef7b commit 36068b5Copy full SHA for 36068b5
spring-batch-core/src/main/java/org/springframework/batch/core/job/AbstractJob.java
@@ -346,6 +346,9 @@ public final void execute(JobExecution execution) throws JobInterruptedException
346
jobExecutionEvent.commit();
347
execution.setEndTime(LocalDateTime.now());
348
349
+ // save status in job repository before calling listeners
350
+ jobRepository.update(execution);
351
+
352
try {
353
listener.afterJob(execution);
354
}
0 commit comments