Announcement Announcement Module
No announcement yet.
Kill Job in Spring Batch Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Kill Job in Spring Batch

    Hi all,
    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 ?