Module: ForemanTasks::Concerns::PollingActionExtensions

Defined in:
app/lib/foreman_tasks/concerns/polling_action_extensions.rb

Instance Method Summary collapse

Instance Method Details

#poll_intervalsObject



4
5
6
7
8
9
# File 'app/lib/foreman_tasks/concerns/polling_action_extensions.rb', line 4

def poll_intervals
  multiplier = Setting[:foreman_tasks_polling_multiplier] || 1

  # Prevent the intervals from going below 0.5 seconds
  super.map { |interval| [interval * multiplier, 0.5].max }
end