Announcement Announcement Module
Collapse
No announcement yet.
Is there a way to get list of executions for the job? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is there a way to get list of executions for the job?

    Hi All,

    I have a use case, when I need to restrict having more than 1 execution of the job, taking into consideration job parameters.

    I tried to implement that functionality in the JobExecutionListener, where I could get the list of all parameters and do the appropriate checks, however the JobExecution doesn't contain any information about other Executions of the same job.

    So I was wondering, is there a trick that I can use for doing that using Spring Batch (all of the information is contained in the spring batch database, I just need a access layer for it)?

    P.S: Version that I use is: 2.1.7.RELEASE

    Sincerely,
    David
Working...
X