-
Notifications
You must be signed in to change notification settings - Fork 48
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
Shutting down workflow gracefully. #30
base: master
Are you sure you want to change the base?
Conversation
try { | ||
executorService.awaitTermination(timeOut, timeUnit); | ||
} catch (InterruptedException e) { | ||
log.error("Exception occurred while waiting for running tasks to complete", e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a call to Thread.currentThread().interrupt() (see: http://www.javapractices.com/topic/TopicAction.do?Id=251)
method of SimpleQueue.
Added call to Thread.currentThread().interrupt() Thanks for review. |
Do you mind writing a test to prove this? |
ping @gs-rchejerla |
Sorry, caught up with some work, will write test case ASAP. |
merged |
@dtoledo67 or @JimBugwadia will you release or do I need to? |
Hi Jordan Zimmerman,
Adding "Graceful shutdown" feature, kindly review.
If it seems fine, please accept the pull request.
Thanks & Regards,
Rajesh.