I am using IBM liberty server and running jsr 352 batch job. Launching a batch job using postman as rest call. But when I tried to stop the job using the instanceid, its saying status as "STOPPING" and it's takes own time to stop. sometimes it's in status of "STOPPING" for few hours. How to force the job to stop.
Note: The job has partition step which reads from database and creates output file.
Using the instanceid of the job, I'm trying to stop the job using postamn put method like below
https://*****:9443/ibm/api/batch/jobinstances/405573?action=stop
//put method from postman
https://*****:9443/ibm/api/batch/jobinstances/405573?action=stop
Response return:
"jobName": "test-job",
"executionId": 405574,
"instanceId": 405573,
"batchStatus": "STOPPING",
"exitStatus": "",
I would expect batch job should be stopped, when I tried to get the batch status using the below URL at least after few minutes or hour. But it takes few hours in some cases.
https://******:9443/ibm/api/batch/jobinstances/405573