2019-09-02 19:11:13 +03:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-11-25 14:07:38 +02:00
|
|
|
class Scheduler::Trends::RefreshScheduler
|
2019-09-02 19:11:13 +03:00
|
|
|
include Sidekiq::Worker
|
|
|
|
|
2023-10-03 13:21:32 +03:00
|
|
|
sidekiq_options retry: 0, lock: :until_executed, lock_ttl: 30.minutes.to_i
|
2019-09-02 19:11:13 +03:00
|
|
|
|
|
|
|
def perform
|
2021-11-25 14:07:38 +02:00
|
|
|
Trends.refresh!
|
2019-09-02 19:11:13 +03:00
|
|
|
end
|
|
|
|
end
|