Sha256: 519fcd526692f3e6dafe358f45c64f68a3c0c29e6d87fd1b5d1d90be3911de17
Contents?: true
Size: 756 Bytes
Versions: 1
Compression:
Stored size: 756 Bytes
Contents
# module Delayed # class StatusJob < RepeatingJob # def perform # true # end # def repeats_every # 1.minutes # end # # This is a good hook if you need to report job processing errors in additional or different ways # def log_exception(error) # #don't send mail for this currently.. we'll do something smart laters # #Delayed::Mailer.deliver_exception_notification(self,error,notify_email) unless notify_email.blank? # logger.error "* [JOB] #{name}(#{id}) failed with #{error.class.name}: #{error.message} - #{attempts} failed attempts" # end # end # end class Delayed::StatusJob < Delayed::Job def perform Delayed::StatusJob.enqueue ::StatusJob.new, run_at: 1.minute.from_now end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mail_manager-0.1.1 | lib/delayed/status_job.rb |