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

Graceful shutdown explanation #5

Closed
charandas opened this issue Jul 6, 2017 · 2 comments
Closed

Graceful shutdown explanation #5

charandas opened this issue Jul 6, 2017 · 2 comments
Labels

Comments

@charandas
Copy link
Contributor

I looked at the prototype of this implementation, and it has a close function to clean up the DB connection.

When looking at tilelive source code, I could not see close being invoked unless for the tillelive.copy function.

I am using tilelive.load only, and am curious how a SIGTERM in my process is currently handled? Alluding to this, could you shed some light on whether the db connection is properly closed before exit?

Thanks.

@stepankuzmin
Copy link
Owner

Hi @charandas! If you want to properly close db connection you need to invoke close on source object obtained by tilelive.load. You can see here how to close connection.

@charandas
Copy link
Contributor Author

Perfect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants