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

pull/26042/head
Claire 1 year ago committed by GitHub
parent 5a437edc7f
commit 4e55001e65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save