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

Shutting down workflow gracefully. #30

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gs-rchejerla
Copy link

Hi Jordan Zimmerman,

Adding "Graceful shutdown" feature, kindly review.
If it seems fine, please accept the pull request.

Thanks & Regards,
Rajesh.

try {
executorService.awaitTermination(timeOut, timeUnit);
} catch (InterruptedException e) {
log.error("Exception occurred while waiting for running tasks to complete", e);
Copy link
Contributor

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)

@gs-rchejerla
Copy link
Author

Added call to Thread.currentThread().interrupt()

Thanks for review.

@Randgalt
Copy link
Contributor

Do you mind writing a test to prove this?

@Randgalt
Copy link
Contributor

Randgalt commented Aug 2, 2016

ping @gs-rchejerla

@gs-rchejerla
Copy link
Author

Sorry, caught up with some work, will write test case ASAP.

@Randgalt
Copy link
Contributor

merged

@Randgalt Randgalt closed this Feb 12, 2018
@Randgalt Randgalt reopened this Feb 12, 2018
@Randgalt
Copy link
Contributor

@dtoledo67 or @JimBugwadia will you release or do I need to?

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

Successfully merging this pull request may close these issues.

2 participants