Sha256: 6b599f60e98c5a52aa05e55ed644be9c0d0ff1095953870ca4899f73e02484fb

Contents?: true

Size: 323 Bytes

Versions: 68

Compression:

Stored size: 323 Bytes

Contents

module ForemanTasks
  module Concerns
    module PollingActionExtensions
      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
    end
  end
end

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
foreman-tasks-10.0.2 app/lib/foreman_tasks/concerns/polling_action_extensions.rb
foreman-tasks-10.0.1 app/lib/foreman_tasks/concerns/polling_action_extensions.rb
foreman-tasks-10.0.0 app/lib/foreman_tasks/concerns/polling_action_extensions.rb
foreman-tasks-9.2.3 app/lib/foreman_tasks/concerns/polling_action_extensions.rb
foreman-tasks-9.2.2 app/lib/foreman_tasks/concerns/polling_action_extensions.rb
foreman-tasks-9.2.1 app/lib/foreman_tasks/concerns/polling_action_extensions.rb
foreman-tasks-9.2.0 app/lib/foreman_tasks/concerns/polling_action_extensions.rb
foreman-tasks-9.1.1 app/lib/foreman_tasks/concerns/polling_action_extensions.rb
foreman-tasks-9.0.4 app/lib/foreman_tasks/concerns/polling_action_extensions.rb
foreman-tasks-9.1.0 app/lib/foreman_tasks/concerns/polling_action_extensions.rb
foreman-tasks-9.0.2 app/lib/foreman_tasks/concerns/polling_action_extensions.rb
foreman-tasks-9.0.1 app/lib/foreman_tasks/concerns/polling_action_extensions.rb
foreman-tasks-8.3.3 app/lib/foreman_tasks/concerns/polling_action_extensions.rb
foreman-tasks-9.0.0 app/lib/foreman_tasks/concerns/polling_action_extensions.rb
foreman-tasks-8.2.1 app/lib/foreman_tasks/concerns/polling_action_extensions.rb
foreman-tasks-8.1.4 app/lib/foreman_tasks/concerns/polling_action_extensions.rb
foreman-tasks-8.3.2 app/lib/foreman_tasks/concerns/polling_action_extensions.rb
foreman-tasks-8.3.1 app/lib/foreman_tasks/concerns/polling_action_extensions.rb
foreman-tasks-8.1.3 app/lib/foreman_tasks/concerns/polling_action_extensions.rb
foreman-tasks-8.3.0 app/lib/foreman_tasks/concerns/polling_action_extensions.rb