Skip to content
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

Wrap Runnable in custom Job Runner class #3

Closed
KenSuenobu opened this issue Apr 28, 2018 · 1 comment
Closed

Wrap Runnable in custom Job Runner class #3

KenSuenobu opened this issue Apr 28, 2018 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@KenSuenobu
Copy link
Owner

KenSuenobu commented Apr 28, 2018

Instead of submitting a job via a Runnable interface to JobExecutor inside the Job class, it should be more intelligently wrapped in a JobRunner class. This way, the job can have some direct control over how it's run.

Potentially, we will have the ability to stop/cancel a job, and run an "onFinished" method that gets called depending on the status that occurs after a job finishes.

Just implement the "onFinished" method for this code. Other methods will come as they are developed.

@KenSuenobu KenSuenobu added the enhancement New feature or request label Apr 28, 2018
@KenSuenobu KenSuenobu self-assigned this Apr 28, 2018
@KenSuenobu
Copy link
Owner Author

Implementing "onFinished" for the time being. There's no way to currently check for exceptions or cancelations (yet). These will be included in new tickets.

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

No branches or pull requests

1 participant