Announcement Announcement Module
No announcement yet.
Restart mechanism in Spring batch Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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 .


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

    Are you doing chunk processing?



    • #3
      This is nice.
      this is right because i have try it.