Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring batch pause/resume vs stop/restart

I am new to spring batch and has some questions regarding pause/resume. After reading spring batch documentation, there doesn't seem to have any built-in pause or resume functions. However, there is this use case i found from the main site:

http://docs.spring.io/spring-batch/2.0.x/cases/pause.html

There are no sample codes provided or is there any place I could find these samples?

In Spring batch, I understand there is a stop and restart function built-in. Could I use this as a form of pause and resume? Or there is another better way of doing it?

like image 853
user1746050 Avatar asked May 12 '26 22:05

user1746050


1 Answers

Stop/restart is essentially pause and resume. It allows you to programmatically stop a running job and pick up where it left off.

like image 117
Michael Minella Avatar answered May 15 '26 15:05

Michael Minella



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!