Skip to content

should be able to abort running jobs #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rkiddy opened this issue Mar 25, 2021 · 1 comment
Open

should be able to abort running jobs #2

rkiddy opened this issue Mar 25, 2021 · 1 comment

Comments

@rkiddy
Copy link
Owner

rkiddy commented Mar 25, 2021

I cannot do this now. I will need to be able to either identify the thread running the task and kill it, or I need the Future object that the submit() method of the Executor provided, which I can use to kill the task.

I need the ability to track the Future objects for other reasons, so that will probably be best.

@rkiddy
Copy link
Owner Author

rkiddy commented Mar 30, 2021

I am finding the last instance of the running task and marking the endTime for it. This clears the problem if a task crashes. It does not, however, actually shut down the task. For that, I would have to kill the thread.

This is possible, so I will leave this issue to cover that work.

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

No branches or pull requests

1 participant