Module: SolidQueue::Process::Executor

Extended by:
ActiveSupport::Concern
Included in:
SolidQueue::Process
Defined in:
app/models/solid_queue/process/executor.rb

Instance Method Summary collapse

Instance Method Details

#fail_all_claimed_executions_with(error) ⇒ Object



14
15
16
17
18
# File 'app/models/solid_queue/process/executor.rb', line 14

def fail_all_claimed_executions_with(error)
  if claims_executions?
    claimed_executions.fail_all_with(error)
  end
end

#release_all_claimed_executionsObject



20
21
22
23
24
# File 'app/models/solid_queue/process/executor.rb', line 20

def release_all_claimed_executions
  if claims_executions?
    claimed_executions.release_all
  end
end