Class: EraserJob

Inherits:
Finalizers::ApplicationJob show all
Defined in:
app/jobs/eraser_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(obj) ⇒ Object



6
7
8
9
10
11
12
13
# File 'app/jobs/eraser_job.rb', line 6

def perform(obj)
  if obj.state == 'deleted'
    obj.finalize_and_destroy!
  end
rescue RetryJobError => ex
  logger.warn "#{ex.message} (attempt=#{executions})"
  raise
end