Announcement Announcement Module
No announcement yet.
Restart a job and then start next job automatically Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Restart a job and then start next job automatically

    I need to create a recovery pattern. In my pattern I can launch a job only on a given time window.
    In case the job fails, it will only be restarted on the next time window and when finish I would like to start the schedule job that was planned in advance for this window.

    The only different between jobs is the time window parameters.

    I thought about JobExecutionDecider with conjunction with Jobexplorer or overriding a job lancer. But all seems too intrusive.

    I failed to found an example that match my needs any Ideas will be most welcome.

  • #2
    This really is outside of the scope of Spring Batch. The framework is designed not to take part in job orchestration/scheduling issues. To implement something like this, you may want to look at Quartz and some of it's capabilities.