ionelmc / python-redis-lock

Lock context manager implemented via redis SET NX EX and BLPOP.
https://pypi.python.org/pypi/python-redis-lock
BSD 2-Clause "Simplified" License
550 stars 78 forks source link

Cannot set timeout greater than expire #74

Closed ghost closed 4 years ago

ghost commented 4 years ago

I may be missing something, but why is this prohibited, especially when there is auto_renewal which can be used with a small expire?

redis_lock.TimeoutTooLarge: Timeout (60) cannot be greater than expire (5)

ionelmc commented 4 years ago

@frogger72 sorry for tardy response. Yes, good catch. I'll change the validation to be less strict.

ionelmc commented 4 years ago

Just released v3.6.0.