mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-23 19:13:13 +01:00
Add a short-lived lock to trend refresh scheduler (#27253)
This commit is contained in:
parent
f8154cf732
commit
15c5727f71
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
class Scheduler::Trends::RefreshScheduler
|
class Scheduler::Trends::RefreshScheduler
|
||||||
include Sidekiq::Worker
|
include Sidekiq::Worker
|
||||||
|
|
||||||
sidekiq_options retry: 0
|
sidekiq_options retry: 0, lock: :until_executed, lock_ttl: 30.minutes.to_i
|
||||||
|
|
||||||
def perform
|
def perform
|
||||||
Trends.refresh!
|
Trends.refresh!
|
||||||
|
|
Loading…
Reference in a new issue