Any one know how to kill a job in the Spring Batch ?
My consideration is that if a customized ItemReader/Writer or a customized Tasklet costs too much CPU/MEM consumption. how can I kill the job by Spring Batch? It seems the JobExecution.stop method doesn't reach to the Tasklet.
Is there any mechanism that Spring Batch will timeout the Tasklet and terminate the job gracefully ?