Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Add ability to stop a job execution #24

Open
fmbenhassine opened this issue Nov 5, 2017 · 0 comments
Open

Add ability to stop a job execution #24

fmbenhassine opened this issue Nov 5, 2017 · 0 comments

Comments

@fmbenhassine
Copy link
Member

fmbenhassine commented Nov 5, 2017

Jobs are submitted to a pool of threads.
Stopping a thread in Java is not the easiest thing to do 😄

It should be possible through the admin interface to stop an execution.
The server should keep track of the execution's Future objects and call cancel on the requested one.

This will set the interrupted flag on the execution thread which should be detected by the user's job using Thread.currentThread().isInterrupted(). This is possible out of the box if the job is an Easy Batch job.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant