feat: set lock timeout to 1 second (#8661)

This commit is contained in:
Shivam Mishra
2024-01-12 08:28:07 +05:30
committed by GitHub
parent 1c44445088
commit 10076c6a3e
2 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
class SendOnSlackJob < MutexApplicationJob
queue_as :medium
retry_on LockAcquisitionError, wait: 1.second, attempts: 6
retry_on LockAcquisitionError, wait: 1.second, attempts: 8
def perform(message, hook)
with_lock(::Redis::Alfred::SLACK_MESSAGE_MUTEX, conversation_id: message.conversation_id, reference_id: hook.reference_id) do