about summary refs log tree commit diff
path: root/app/workers
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2021-05-22 15:16:21 +0200
committerGitHub <noreply@github.com>2021-05-22 15:16:21 +0200
commit2024aef0f9b52297d814811f5825678a563f78ff (patch)
tree5014b9fa72ae4704d61ae7ffc8e992f0b67b6a25 /app/workers
parent03952c7d4980a008f6711d7f14b8808229d73524 (diff)
parent8027d921ab174b35bcf08bf96b69676a4515435f (diff)
Merge pull request #1542 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/distribution_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/distribution_worker.rb b/app/workers/distribution_worker.rb
index 4e20ef31b..e85cd7e95 100644
--- a/app/workers/distribution_worker.rb
+++ b/app/workers/distribution_worker.rb
@@ -4,7 +4,7 @@ class DistributionWorker
   include Sidekiq::Worker
 
   def perform(status_id)
-    RedisLock.acquire(redis: Redis.current, key: "distribute:#{status_id}") do |lock|
+    RedisLock.acquire(redis: Redis.current, key: "distribute:#{status_id}", autorelease: 5.minutes.seconds) do |lock|
       if lock.acquired?
         FanOutOnWriteService.new.call(Status.find(status_id))
       else