Class: Sidekiq::Undertaker::JobDistributor
- Inherits:
-
Object
- Object
- Sidekiq::Undertaker::JobDistributor
- Defined in:
- lib/sidekiq/undertaker/job_distributor.rb
Instance Attribute Summary collapse
-
#dead_jobs ⇒ Object
readonly
Returns the value of attribute dead_jobs.
Instance Method Summary collapse
- #group_by_error_class ⇒ Object
- #group_by_error_msg ⇒ Object
- #group_by_job_class ⇒ Object
-
#initialize(dead_jobs) ⇒ JobDistributor
constructor
A new instance of JobDistributor.
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_jobs ⇒ Object (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_class ⇒ Object
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_msg ⇒ Object
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_class ⇒ Object
14 15 16 |
# File 'lib/sidekiq/undertaker/job_distributor.rb', line 14 def group_by_job_class group_by(:job_class) end |