24 lines
564 B
Ruby
24 lines
564 B
Ruby
module JamRuby
|
|
class HourlyJob
|
|
extend Resque::Plugins::JamLonelyJob
|
|
|
|
@queue = :scheduled_hourly_job
|
|
@@log = Logging.logger[HourlyJob]
|
|
|
|
def self.perform
|
|
@@log.info("waking up")
|
|
|
|
#LessonBooking.hourly_check
|
|
#LessonSession.hourly_check
|
|
#TeacherPayment.hourly_check
|
|
User.hourly_check
|
|
AffiliatePartner.tally_up(Date.today)
|
|
EmailProfileReminder.send_reminders
|
|
AppDownloadReminder.send_reminders
|
|
ConnectionManager.new.cleanup_dangling
|
|
|
|
@@log.info("done")
|
|
end
|
|
end
|
|
end
|