This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2020-12-14 00:06:34 -08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Scheduler::InstanceRefreshScheduler
|
|
|
|
include Sidekiq::Worker
|
|
|
|
|
2021-03-15 03:17:43 -07:00
|
|
|
sidekiq_options retry: 0
|
2020-12-14 00:06:34 -08:00
|
|
|
|
|
|
|
def perform
|
|
|
|
Instance.refresh
|
2023-07-27 07:11:17 -07:00
|
|
|
InstancesIndex.import if Chewy.enabled?
|
2020-12-14 00:06:34 -08:00
|
|
|
end
|
|
|
|
end
|