2020-12-14 08:06:34 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Scheduler::InstanceRefreshScheduler
|
|
|
|
include Sidekiq::Worker
|
|
|
|
|
2023-08-03 10:04:05 +01:00
|
|
|
sidekiq_options retry: 0, lock: :until_executed, lock_ttl: 1.day.to_i
|
2020-12-14 08:06:34 +00:00
|
|
|
|
|
|
|
def perform
|
|
|
|
Instance.refresh
|
2023-07-27 15:11:17 +01:00
|
|
|
InstancesIndex.import if Chewy.enabled?
|
2020-12-14 08:06:34 +00:00
|
|
|
end
|
|
|
|
end
|