Batch job execution lastUpdated property #4790
-
Can anyone advise how the persistent value timestamp of this property is determined? Specifically whether it uses the target databases native mechanism such as a 'now()' function when the row is created or updated or whether it uses the applications host system clock? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The last updated property of a job/step execution is set to the time of the local JVM before being persisted, see There is a note about this in the appendix here: https://docs.spring.io/spring-batch/reference/schema-appendix.html#metaDataBatchJobExecution Is that what you are looking for? |
Beta Was this translation helpful? Give feedback.
The last updated property of a job/step execution is set to the time of the local JVM before being persisted, see
spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/repository/support/SimpleJobRepository.java
Line 192 in 894f9f9
There is a note about this in the appendix here: https://docs.spring.io/spring-batch/reference/schema-appendix.html#metaDataBatchJobExecution
Is that what you are looking for?