Results 1 to 2 of 2

Thread: Stop Job with only step

  1. #1
    Join Date
    Oct 2007
    Posts
    9

    Default 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

  2. #2

    Default

    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
  •