Class: Sidekiq::Undertaker::JobDistributor

Inherits:
Object
  • Object
show all
Defined in:
lib/sidekiq/undertaker/job_distributor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dead_jobs) ⇒ JobDistributor

Returns a new instance of JobDistributor.



10
11
12
# File 'lib/sidekiq/undertaker/job_distributor.rb', line 10

def initialize(dead_jobs)
  @dead_jobs = dead_jobs
end

Instance Attribute Details

#dead_jobsObject (readonly)

Returns the value of attribute dead_jobs.



8
9
10
# File 'lib/sidekiq/undertaker/job_distributor.rb', line 8

def dead_jobs
  @dead_jobs
end

Instance Method Details

#group_by_error_classObject



18
19
20
# File 'lib/sidekiq/undertaker/job_distributor.rb', line 18

def group_by_error_class
  group_by(:error_class)
end

#group_by_error_msgObject



22
23
24
# File 'lib/sidekiq/undertaker/job_distributor.rb', line 22

def group_by_error_msg
  group_by(:error_msg)
end

#group_by_job_classObject



14
15
16
# File 'lib/sidekiq/undertaker/job_distributor.rb', line 14

def group_by_job_class
  group_by(:job_class)
end