In spring batch ref doc 4.3.1, it promote to use SimpleAsyncTaskExecutor on http request. In this case jobLauncher will return a JobExecution immediately with status UNKNOWN.
I would like to is there any way to get the exit code , if a shell script(shell script is scheduled) invokes the http request and it is expecting the job exit-code back (in asynchronous mode)?
(I am using asynchronous mode here because, the same http request can be used to stop the running job based on http input value. I have a singleton class which launch the job and return the JobExecution.)


Reply With Quote