Jan 13th, 2013, 02:35 PM
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.
Jan 15th, 2013, 09:34 AM
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.
Tags for this Thread