Module: Sidekiq::Batch::Extension::Worker
- Defined in:
- lib/sidekiq/batch/extension/worker.rb
Instance Method Summary collapse
Instance Method Details
#batch ⇒ Object
7 8 9 |
# File 'lib/sidekiq/batch/extension/worker.rb', line 7 def batch Sidekiq::Batch.new(Thread.current[:bid].bid) if Thread.current[:bid] end |
#bid ⇒ Object
3 4 5 |
# File 'lib/sidekiq/batch/extension/worker.rb', line 3 def bid Thread.current[:bid] end |
#valid_within_batch? ⇒ Boolean
11 12 13 |
# File 'lib/sidekiq/batch/extension/worker.rb', line 11 def valid_within_batch? batch.valid? end |