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

feat(cluster): add Cluster#quit() to quit cluster gracefully. Close #315 #339

Merged
merged 2 commits into from
Jun 28, 2016

Conversation

luin
Copy link
Collaborator

@luin luin commented Jun 26, 2016

No description provided.

@luin luin changed the title feat: support quit cluster gracefully. Close #315 feat(cluster): add Cluster#quit() to quit cluster gracefully. Close #315 Jun 26, 2016
return Promise.all(this.nodes().map(function (node) {
return node.quit();
})).then(function (res) {
return res.length;
Copy link
Collaborator Author

@luin luin Jun 26, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we return the number of the node been disconnected or just "OK" to keep in line with the result of native quit?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think just "OK" is good

@luin luin merged commit 68c4ccc into master Jun 28, 2016
@luin luin deleted the cluster-quit branch June 28, 2016 14:40
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