Sep 26th, 2011, 01:38 AM
Spring Batch Admin - stop long running jobs
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?
Sep 27th, 2011, 03:47 AM
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