Class: BatchProcessor::Processors::Sequential
- Inherits:
-
BatchProcessor::ProcessorBase
- Object
- Spicerack::InputObject
- BatchProcessor::ProcessorBase
- BatchProcessor::Processors::Sequential
- Defined in:
- lib/batch_processor/processors/sequential.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods included from BatchProcessor::Processor::Execute
Methods included from BatchProcessor::Processor::Process
Class Method Details
.disable_retries? ⇒ Boolean
11 12 13 |
# File 'lib/batch_processor/processors/sequential.rb', line 11 def disable_retries? true end |
Instance Method Details
#process_collection_item(item) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/batch_processor/processors/sequential.rb', line 16 def process_collection_item(item) job = batch.job_class.new(item) job.batch_id = batch.batch_id job.perform_now rescue StandardError => exception raise exception unless continue_after_exception end |