-
Notifications
You must be signed in to change notification settings - Fork 78
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
Idea: better cleanup #13
Comments
Please don't do that. Explicit handling is more reliable. |
Good programming is more reliable yes 😁 but maybe at least emit a warning when a held lock is getting |
That would be exactly like how Python 3 emits warnings when you forgot to close the file. |
In cases when you have lock shared between processes, you want it to live even after some process is gone. |
Auto-renewal thread should probably be cleaned up on garbage collection |
(the autorenewal cleanup implemented in #33) |
I got the idea from here: ionelmc/python-redis-lock#13
I got the idea from here: ionelmc/python-redis-lock#13
Automatically release lock if it gets garbage collected. Eg:
The text was updated successfully, but these errors were encountered: