Class: BatchProcessor::Processors::Parallel
- Inherits:
-
BatchProcessor::ProcessorBase
- Object
- Spicerack::InputObject
- BatchProcessor::ProcessorBase
- BatchProcessor::Processors::Parallel
- Defined in:
- lib/batch_processor/processors/parallel.rb
Instance Method Summary collapse
Methods inherited from BatchProcessor::ProcessorBase
Methods included from BatchProcessor::Processor::Execute
Methods included from BatchProcessor::Processor::Process
Instance Method Details
#process_collection_item(item) ⇒ Object
9 10 11 12 13 |
# File 'lib/batch_processor/processors/parallel.rb', line 9 def process_collection_item(item) job = batch.job_class.new(item) job.batch_id = batch.batch_id job.enqueue end |