Results 1 to 3 of 3

Thread: Restart mechanism in Spring batch

Hybrid View

  1. #1
    Join Date
    Jun 2011
    Posts
    2

    Default Restart mechanism in Spring batch

    Assume that I have an of 10000 requests/items, I have configured skip limit as 100 ,
    Now batch started reading/processing
    in the middle the items are skipped continously becoz of a third party server instance down for some n hours.
    after 100 th skip , the job fails .

    which this scenario I have foloowing open questions

    1) How to restart the job after the server instance is UP , do we need to have any unique id , if then where to configure it ?
    2) If I restart the job manually , will it process all items again from beginning or will it start from the last skipped position ?
    3) if restart starts from last skipped position (i.e 100 th skipped item), how shall i restart fromthe 1 st skipped item
    because those have to be processed again .
    Here which is reffered as "left Off position " - 1st skipped item or 100 th skipped item ??/

    Please reply in detail .

    Thanks
    Javadev333

  2. #2

    Default

    Metadata in the database is used during a job restart to attempt to pick up where it left off.

    Are you doing chunk processing?

    Jeff

  3. #3
    Join Date
    Sep 2012
    Posts
    1

    Default

    This is nice.
    this is right because i have try it.

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
  •