You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi and thank you so much for creating this awesome library 😃
For my application it's crucial that the lock is eventually released even if the process crashes, so I have some questions that I didn't find answered in the docs:
How does filelock make sure that the lock file is removed even if the app crashes? Is that mechanism reliable or can it fail?
Is there a way to detect "orphan" lock files? Let's say I try to acquire a lock, but the lock already exists. Is there a way to know for how long the lock exists already and break it, let's say if it's older than 1 minute?
Maybe this information would be useful in the docs as well.
I really appreciate your help 🙇
The text was updated successfully, but these errors were encountered:
We don't have any good solution for point number one. Similarly, there's nothing built-in for point number two. However, you could try to use the pathlib library to check for the age of the lock file, I guess.
I thought about this a bit and indeed ended up with checking the age of the lock file. I was wondering if that wouldn't make a great feature for your library.
Hi and thank you so much for creating this awesome library 😃
For my application it's crucial that the lock is eventually released even if the process crashes, so I have some questions that I didn't find answered in the docs:
filelock
make sure that the lock file is removed even if the app crashes? Is that mechanism reliable or can it fail?Maybe this information would be useful in the docs as well.
I really appreciate your help 🙇
The text was updated successfully, but these errors were encountered: