Spring Batch resume after server's failure

后端 未结 4 555
既然无缘
既然无缘 2021-02-04 06:53

I am using spring batch to parse files and I have the following scenario:

I am running a job. This job has to parse a giving file. For unexpected reason (let say for pow

4条回答
  •  旧时难觅i
    2021-02-04 07:45

    What I would do in your situation is to create a step to log the last processed row in a file. Then create a second job that would read this file and start the processing from a specific row number.

    So if the job stops due to whatever reason you will be able to run the new Job that will resume the processing.

提交回复
热议问题