class InsightsCloud::Async::InsightsScheduledSync

Public Instance Methods

plan() click to toggle source
# File lib/insights_cloud/async/insights_scheduled_sync.rb, line 6
def plan
  unless Setting[:allow_auto_insights_sync]
    logger.debug(
      'The scheduled process is disabled due to the "allow_auto_insights_sync"
      setting being set to false.'
    )
    return
  end

  plan_full_sync
end
plan_full_sync() click to toggle source
# File lib/insights_cloud/async/insights_scheduled_sync.rb, line 18
def plan_full_sync
  plan_action InsightsFullSync
end
rescue_strategy_for_self() click to toggle source
# File lib/insights_cloud/async/insights_scheduled_sync.rb, line 22
def rescue_strategy_for_self
  Dynflow::Action::Rescue::Fail
end