Module: SolidQueue::Process::Prunable

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

Instance Method Summary collapse

Instance Method Details

#pruneObject



24
25
26
27
28
29
# File 'app/models/solid_queue/process/prunable.rb', line 24

def prune
  error = Processes::ProcessPrunedError.new(last_heartbeat_at)
  fail_all_claimed_executions_with(error)

  deregister(pruned: true)
end