Restart and Error Handling
Recover from failures in batch jobs.
Failures are inevitable
Long batch jobs hit bad rows, transient network errors, and crashes. Spring Batch provides skip, retry and restartability so a job can survive and resume.
Restartability basics
Because the JobRepository records each step execution, a failed job can be restarted and it resumes from where it stopped, not from the beginning. The same JobParameters must be used.
All lessons in this course
- Scheduling with @Scheduled
- Spring Batch Jobs and Steps
- Readers, Processors, and Writers
- Restart and Error Handling