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

Create an atexit hook ? #46

Open
ddorian opened this issue Mar 20, 2017 · 1 comment
Open

Create an atexit hook ? #46

ddorian opened this issue Mar 20, 2017 · 1 comment

Comments

@ddorian
Copy link

ddorian commented Mar 20, 2017

So if a program exits for some reason, we try to send all data one last time ?

https://docs.python.org/2/library/atexit.html

Makes sense ?

@ergo
Copy link
Member

ergo commented Jul 10, 2017

We can try this (pull requests welcome), however:

Note: The functions registered via this module are not called when the program is killed by a signal not handled by Python, when a Python fatal internal error is detected, or when os._exit() is called.

So some cases will still not be handled I'm afraid.

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

No branches or pull requests

2 participants