Class: Sidekiq::Batch::Status
- Inherits:
-
Object
- Object
- Sidekiq::Batch::Status
- Defined in:
- lib/rspec/sidekiq_pro/batches.rb
Instance Method Summary collapse
-
#initialize(bid) ⇒ Status
constructor
A new instance of Status.
Constructor Details
#initialize(bid) ⇒ Status
Returns a new instance of Status.
191 192 193 194 195 196 197 198 199 200 201 |
# File 'lib/rspec/sidekiq_pro/batches.rb', line 191 def initialize(bid) if Sidekiq::Testing.disabled? super else @bid = bid @props = RSpec::SidekiqPro::Batches::Props.fetch(bid, {}) @pending = 0 @failures = 0 @total = @props.fetch("jids", []).size end end |