imranmomin / Hangfire.AzureCosmosDb

Azure Cosmos DB storage provider for Hangfire
https://www.hangfire.io/
MIT License
17 stars 16 forks source link

CosmosDbDistributedLock not respecting existing locks #31

Closed bzumhagen closed 2 years ago

bzumhagen commented 3 years ago

The implementation here:

https://github.com/imranmomin/Hangfire.AzureCosmosDb/blob/develop/src/CosmosDbDistributedLock.cs#L41

Does not seem to respect any existing locks, but simply overwrites them.

This results in duplicate entries like this issue: https://github.com/imranmomin/Hangfire.AzureCosmosDb/issues/21

imranmomin commented 2 years ago

@bzumhagen - I'm working on this issue. Will soon have a release.

imranmomin commented 2 years ago

@bzumhagen - I did some fixes and improvement and I think it fixes the issue. If you can pull /patch_api_update branch and test on your side to confirm the fix