-
Feb 18th, 2012, 02:39 PM
#1
Stop Job with only step
Hi all,
Iīm using Spring Batch and I have jobs with an only step but I donīt know stop or kill the job.
I use jobExecution.stop() but the job doesnīt stop.
Any suggestion???
Thank you very much
-
Mar 3rd, 2012, 03:03 AM
#2
It can't stop immediately since the purpose of stop is to perform a "graceful" stop of your execution. This will happen when the chunk has finalized and the transaction has committed.
If you're chunk size is very large (not really recommended) it may take some time. But something larger than 2/3 minutes would be very weird since you have a transaction running for the duration on the chunk.
See also: http://static.springsource.org/sprin...l#stoppingAJob
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules