module Sidekiq

Public Class Methods

history_exclude_jobs() click to toggle source
# File lib/sidekiq/history.rb, line 27
def self.history_exclude_jobs
  if defined? Sidekiq::History::Middleware::EXCLUDE_JOBS
    jobs = Sidekiq::History::Middleware::EXCLUDE_JOBS
  end
  return jobs if @history_exclude_jobs.nil?
  @history_exclude_jobs
end
history_exclude_jobs=(value) click to toggle source
# File lib/sidekiq/history.rb, line 23
def self.history_exclude_jobs=(value)
  @history_exclude_jobs = value
end
history_include_jobs() click to toggle source
# File lib/sidekiq/history.rb, line 39
def self.history_include_jobs
  if defined? Sidekiq::History::Middleware::INCLUDE_JOBS
    jobs = Sidekiq::History::Middleware::INCLUDE_JOBS
  end
  return jobs if @history_include_jobs.nil?
  @history_include_jobs
end
history_include_jobs=(value) click to toggle source
# File lib/sidekiq/history.rb, line 35
def self.history_include_jobs=(value)
  @history_include_jobs = value
end
history_max_count() click to toggle source
# File lib/sidekiq/history.rb, line 11
def self.history_max_count
  # => use default 1000 unless specified in config.
  # Max is 4294967295 per Redis Sorted Set limit
  hmc = if defined? MAX_COUNT
          [MAX_COUNT, 4_294_967_295].min
        else
          1000
        end
  return hmc if @history_max_count.nil?
  @history_max_count
end
history_max_count=(value) click to toggle source
# File lib/sidekiq/history.rb, line 7
def self.history_max_count=(value)
  @history_max_count = value
end