Announcement Announcement Module
Collapse
No announcement yet.
Spring Batch Admin - stop long running jobs Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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.

    Comment

    Working...
    X