Module: Sidekiq

Defined in:
lib/sidekiq/history.rb,
lib/sidekiq/history/version.rb,
lib/sidekiq/history/middleware.rb,
lib/sidekiq/history/web_extension.rb

Defined Under Namespace

Modules: History

Class Method Summary collapse

Class Method Details

.history_exclude_jobsObject



27
28
29
30
31
32
33
# 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) ⇒ Object



23
24
25
# File 'lib/sidekiq/history.rb', line 23

def self.history_exclude_jobs=(value)
  @history_exclude_jobs = value
end

.history_include_jobsObject



39
40
41
42
43
44
45
# 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) ⇒ Object



35
36
37
# File 'lib/sidekiq/history.rb', line 35

def self.history_include_jobs=(value)
  @history_include_jobs = value
end

.history_max_countObject



11
12
13
14
15
16
17
18
19
20
21
# 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) ⇒ Object



7
8
9
# File 'lib/sidekiq/history.rb', line 7

def self.history_max_count=(value)
  @history_max_count = value
end