distributed-lock icon indicating copy to clipboard operation
distributed-lock copied to clipboard

MongoLocked: Don't retry on "fail to acquire"

Open luccasmf opened this issue 1 year ago • 1 comments

Is there a way to set the Lock to not retry ?

luccasmf avatar Sep 15 '22 05:09 luccasmf

I did not test it, I am a bit overwhelmed at the moment, but I think if you set retry period to longer than the timeout period, it should do the trick?

alturkovic avatar Sep 27 '22 13:09 alturkovic

I added a new support to disable retries when it is defined as retry = @Interval("0")

alturkovic avatar Nov 02 '22 11:11 alturkovic