Module: BatchProcessor::Batch::Processor
- Extended by:
- ActiveSupport::Concern
- Included in:
- BatchProcessor::BatchBase
- Defined in:
- lib/batch_processor/batch/processor.rb
Constant Summary collapse
- PROCESSOR_CLASS_BY_STRATEGY =
The default processors can be redefined and new custom ones can be added as well. rubocop:disable Style/MutableConstant
{ default: BatchProcessor::Processors::Parallel, parallel: BatchProcessor::Processors::Parallel, sequential: BatchProcessor::Processors::Sequential, }
Instance Method Summary collapse
Instance Method Details
#process ⇒ Object
63 64 65 66 67 68 |
# File 'lib/batch_processor/batch/processor.rb', line 63 def process process! rescue BatchProcessor::Error => exception handle_exception(exception) self end |
#process! ⇒ Object
58 59 60 61 |
# File 'lib/batch_processor/batch/processor.rb', line 58 def process! processor_class.execute(batch: self, **) self end |