DistributedLocks
DistributedLocks copied to clipboard
More Control over the storage lease would be ideal for longer time consuming processes.
I was trying to use this package as a part of my code. However, in my case, operations that would need the distributed locks run well over a minute. In some cases, it could take up to 15-20 mins to complete. Azure Blob storage provides a way to get a lease for an infinite duration which can then be cleaned and cancelled by your Release Lease method.
The bug here is to enable the creation of a lock with infinite lease duration and then exposing the method to release the lease as a public function or will get cleaned up at the end of the execution of the lock.