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

Feature request: Allow custom handlers #5

Closed
felixmosh opened this issue Jul 19, 2020 · 1 comment · Fixed by #6
Closed

Feature request: Allow custom handlers #5

felixmosh opened this issue Jul 19, 2020 · 1 comment · Fixed by #6

Comments

@felixmosh
Copy link
Contributor

I want to close mysql connection, I'm using Knex as an abstraction above it.

Knex has destroy method.

Instead of saving a list of services which should be terminated (and each time add new one) it is better to allow to pass a method which can return a promise, and inside, it will do it's cleanup.

@niftylettuce
Copy link
Contributor

Thanks @felixmosh, v1.0.4 released to npm with this.

https://github.com/ladjs/graceful/releases/tag/v1.0.4

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 a pull request may close this issue.

2 participants