diff options
author | Starfall <us@starfall.systems> | 2021-06-08 09:28:57 -0500 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2021-06-08 09:28:57 -0500 |
commit | f95637178671b1aa0648fa506231717229a6cd8f (patch) | |
tree | fbaa725bcdb88220c5d1e299b338b196822460e5 /app/workers | |
parent | 2c6fcb9cf8fbb09e900fc3625837529155f98f4f (diff) | |
parent | db5baf3d1a93cbf6961f721205cff0beaf71bffd (diff) |
Merge branch 'glitch'
Conflicts: yarn.lock: caniuse-lite has been outdated in upstream for awhile, and we fixed it a few weeks ago in our fork
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/distribution_worker.rb | 2 |
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 |