Skip to content

Shutting down workflow gracefully.#30

Open
gs-rchejerla wants to merge 2 commits into
nirmata:masterfrom
gs-rchejerla:master
Open

Shutting down workflow gracefully.#30
gs-rchejerla wants to merge 2 commits into
nirmata:masterfrom
gs-rchejerla:master

Conversation

@gs-rchejerla
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
Author

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

Thanks for review.

@Randgalt
Copy link
Copy Markdown
Contributor

Do you mind writing a test to prove this?

@Randgalt
Copy link
Copy Markdown
Contributor

Randgalt commented Aug 2, 2016

ping @gs-rchejerla

@gs-rchejerla
Copy link
Copy Markdown
Author

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

@Randgalt
Copy link
Copy Markdown
Contributor

merged

@Randgalt Randgalt closed this Feb 12, 2018
@Randgalt Randgalt reopened this Feb 12, 2018
@Randgalt
Copy link
Copy Markdown
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