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 Thread.current[:batch] end |
#bid ⇒ Object
3 4 5 |
# File 'lib/sidekiq/batch/extension/worker.rb', line 3 def bid Thread.current[:batch].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 |