concept skip in category spring
appears as: skip, skips, skip

This is an excerpt from Manning's book Spring Batch in Action.
Listing 3.7. Configuring chunk retry, skip, and completion
<batch:job id="importProductsJob"> (...) <batch:step id="readWrite"> <batch:tasklet> <batch:chunk (...) skip-limit="20" retry-limit="3" cache-capacity="100" chunk-completion-policy="timeoutCompletionPolicy"/> </batch:tasklet> </batch:step> </batch:job> <bean id="timeoutCompletionPolicy" class="org.springframework.batch.repeat .policy.TimeoutTerminationPolicy"> <constructor-arg value="60"/> </bean>
Table 3.5. Chunk attributes
Chunk attribute name
Description
reader Bean identifier used to read data from a chunk. The bean must implement the Spring Batch ItemReader interface. processor Bean identifier used to process data from a chunk. The bean must implement the Spring Batch ItemProcessor interface. writer Bean identifier used to write data from a chunk. The bean must implement the Spring Batch ItemWriter interface. commit-interval Number of items to process before issuing a commit. When the number of items read reaches the commit interval number, the entire corresponding chunk is written out through the item writer and the transaction is committed. skip-limit Maximum number of skips during processing of the step. If processing reaches the skip limit, the next exception thrown on item processing (read, process, or write) causes the step to fail. skip-policy Skip policy bean that implements the SkipPolicy interface. retry-policy Retry policy bean that implements the RetryPolicy interface. retry-limit Maximum number of retries. cache-capacity Cache capacity of the retry policy. reader-transactional-queue When reading an item from a JMS queue, whether reading is transactional. processor-transactional Whether the processor used includes transactional processing. chunk-completion-policy Completion policy bean for the chunk that implements the CompletionPolicy interface.
The features listed in table 8.1 are independent from each other: you can use one without the others, or you can combine them. Remember that skip and retry are about avoiding a crash on an error, whereas restart is useful, when a job has crashed, to restart it where it left off.