Module: BatchProcessor::Batch::Predicates

Extended by:
ActiveSupport::Concern
Included in:
BatchProcessor::BatchBase
Defined in:
lib/batch_processor/batch/predicates.rb

Instance Method Summary collapse

Instance Method Details

#malfunction?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/batch_processor/batch/predicates.rb', line 21

def malfunction?
  malfunction.present?
end

#processing?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/batch_processor/batch/predicates.rb', line 17

def processing?
  started? && !aborted? && !finished?
end