Results 1 to 2 of 2

Thread: Restart a job and then start next job automatically

Hybrid View

  1. #1
    Join Date
    Jan 2013
    Posts
    1

    Default 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. #2
    Join Date
    Sep 2008
    Location
    Chicagoland, IL
    Posts
    338

    Default

    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.
    Michael Minella
    Spring Batch Lead
    Author - Pro Spring Batch
    http://www.michaelminella.com
    Twitter: @MichaelMinella

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •