Class: Marty::RemoveOldPromisesJob

Inherits:
CronJob
  • Object
show all
Defined in:
app/jobs/marty/remove_old_promises_job.rb

Instance Attribute Summary

Attributes inherited from CronJob

#schedule_id

Instance Method Summary collapse

Methods inherited from CronJob

#enqueue, #log_failure, #log_success, remove, reschedule, schedule, scheduled?

Instance Method Details

#performObject



3
4
5
# File 'app/jobs/marty/remove_old_promises_job.rb', line 3

def perform
  Marty::Promise.cleanup(false)
end