Add a short-lived lock to trend refresh scheduler (#27253)
parent
5a437edc7f
commit
4e55001e65
|
@ -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 New Issue