Module: SolidQueue::Process::Prunable
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/solid_queue_mongoid/models/classes.rb,
lib/solid_queue_mongoid/models/process/prunable.rb
Instance Method Summary collapse
Instance Method Details
#prune ⇒ Object
37 38 39 40 41 42 43 44 45 46 |
# File 'lib/solid_queue_mongoid/models/process/prunable.rb', line 37 def prune error = begin ::SolidQueue::Processes::ProcessPrunedError.new(last_heartbeat_at) rescue NameError RuntimeError.new("Process pruned: last heartbeat at #{last_heartbeat_at}") end fail_all_claimed_executions_with(error) deregister(pruned: true) end |