Spring Batch Partitioning, how to stop a Job once any of the partitioned step throws exception. Joboperator.stop(jobId) is Not stopping immediately

Viewed 15

I am running a Spring Batch Job with Partitioned Step, Retry and skip and if 1 of partitioned reached the skip limit it will throws exception i am required to stop the job immediately, how to stop a Job once any of the partitioned step throws exception, as currently other partitioned steps keep running till end and after they complete, the Job stops with unsuccessful return code.we are using TaskExecutorPartitionHandler. We tried Joboperator.stop(jobId) is not stopping immediately

0 Answers
Related