Reputation: 1840
Spring Batch core framework is using following tables (on screenshot). Is it possible somehow to get data from those tables, for example to expose this data with an API. Or somehow reference this data programmatically. Or those table are internals of Spring Batch and not supposed to be used directly?
Upvotes: 0
Views: 278
Reputation: 31590
These tables are not intended to be modified by the user, except in one case where a job has been killed and should be restarted (in this case, the job execution status should be updated manually in the table, you can find more details about this in the documentation).
Is it possible somehow to get data from those tables, for example to expose this data with an API. Or somehow reference this data programmatically
The JobExplorer
API is what you need. It is a read-only version of the JobRepository
and allows you to access those tables programmatically.
Upvotes: 1