From the course: Spring: Spring Batch

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Skip logic

Skip logic

From the course: Spring: Spring Batch

Start my 1-month free trial

Skip logic

- [Instructor] When something goes wrong in a batch job, it's not a pleasant experience. People are called at all hours of the night in order to remedy the issues that occurred within the batch. Using Spring Batch's skip feature, we can prevent those off-hour calls for non-essential issues that may occur within a job. Some batch jobs can tolerate small errors, and a single data error shouldn't cause the job to fail. For example, if we were running a batch process to send customers coupon codes, it might not be too critical if a customer with a bad email address doesn't receive the code. In these scenarios, we can configure a step to allow for skips. Skips allow us to continue processing when a particular item causes an exception to be thrown. The job will just ignore the exception and continue processing. So let's imagine that we permit skips in this job. You will notice that processing of our second item is going to…

Contents