feat: update lock timeout and retry configuration (#7785)

This commit is contained in:
Shivam Mishra
2023-08-24 12:59:47 +07:00
committed by GitHub
parent 24468d71fb
commit 44f6a9ec3c
2 changed files with 5 additions and 5 deletions

View File

@@ -12,10 +12,10 @@
# end
#
class Redis::LockManager
# Default lock timeout set to 5 seconds. This means that if the lock isn't released
# within 5 seconds, it will automatically expire.
# Default lock timeout set to 2 seconds. This means that if the lock isn't released
# within 2 seconds, it will automatically expire.
# This helps to avoid deadlocks in case the process holding the lock crashes or fails to release it.
LOCK_TIMEOUT = 5.seconds
LOCK_TIMEOUT = 2.seconds
# Attempts to acquire a lock for the given key.
#