Results 1 to 2 of 2

Thread: Spring Batch Admin - stop long running jobs

  1. #1
    Join Date
    Jan 2008
    Posts
    7

    Default Spring Batch Admin - stop long running jobs

    Hi,
    Using the Stop button from the Spring Batch Admin web interface there is a strange behavior with the long running jobs.

    The job is getting immediately the 'Stopping' status, however it is not really stopped. The jobs continues to do its work normally and only when the initial work is fully finished the job will get the status 'Stopped'.

    Basically the job is not stopped, only the status is changed in the GUI.

    I am missing something? Is there anything more to be done in order to stop a job through the web GUI?

    Thanks,
    Doru

  2. #2
    Join Date
    Dec 2005
    Location
    Lyon, France
    Posts
    311

    Default

    what do you mean by "only when the initial work is fully finished"? Remember that you can't stop a thread abruptly in Java. If the job is running some code that doesn't care about the interrupt signal, the job would stop only when this code finishes and the framework takes control again.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •