gearheads
/
mastodon
Archived
2
0
Fork 0

Add a short-lived lock to trend refresh scheduler (#27253)

gh/dev^2
Claire 2023-10-03 12:21:32 +02:00
parent aa4c4f5737
commit 451884a36b
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
class Scheduler::Trends::RefreshScheduler
include Sidekiq::Worker
sidekiq_options retry: 0
sidekiq_options retry: 0, lock: :until_executed, lock_ttl: 30.minutes.to_i
def perform
Trends.refresh!