class QC::Worker

Public Instance Methods

process(queue, job) click to toggle source
# File lib/queue_classic_batches/worker.rb, line 6
def process(queue, job)
  result = qc_base_process queue, job
  if job[:batch_id]
    #note, for errors if the worker doesn't delete the job in handle_failure, this never fires
    QC::Batches::Batch.complete_if_finished job[:batch_id]
  end
  return result
end
Also aliased as: qc_base_process
qc_base_process(queue, job)
Alias for: process