2020-12-14 19:06:34 +11:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Scheduler::InstanceRefreshScheduler
|
|
|
|
include Sidekiq::Worker
|
|
|
|
|
2021-03-15 21:17:43 +11:00
|
|
|
sidekiq_options retry: 0
|
2020-12-14 19:06:34 +11:00
|
|
|
|
|
|
|
def perform
|
|
|
|
Instance.refresh
|
2023-07-28 00:11:17 +10:00
|
|
|
InstancesIndex.import if Chewy.enabled?
|
2020-12-14 19:06:34 +11:00
|
|
|
end
|
|
|
|
end
|