feat: implement mutex for SlackSendJob (#7783)
This commit is contained in:
@@ -37,4 +37,5 @@ module Redis::RedisKeys
|
||||
## Sempahores / Locks
|
||||
# We don't want to process messages from the same sender concurrently to prevent creating double conversations
|
||||
FACEBOOK_MESSAGE_MUTEX = 'FB_MESSAGE_CREATE_LOCK::%<sender_id>s::%<recipient_id>s'.freeze
|
||||
SLACK_MESSAGE_MUTEX = 'SLACK_MESSAGE_LOCK::%<sender_id>s::%<reference_id>s'.freeze
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user