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

This commit is contained in:
Claire 2023-10-03 12:21:32 +02:00
parent 0b10485a87
commit 26f24f4de0

View file

@ -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!