2016-04-06 02:23:15 +00:00
|
|
|
module JamRuby
|
|
|
|
|
class HourlyJob
|
|
|
|
|
extend Resque::Plugins::JamLonelyJob
|
|
|
|
|
|
|
|
|
|
@queue = :scheduled_hourly_job
|
|
|
|
|
@@log = Logging.logger[HourlyJob]
|
|
|
|
|
|
|
|
|
|
def self.perform
|
2020-12-02 15:30:58 +00:00
|
|
|
@@log.info("waking up")
|
2016-04-06 02:23:15 +00:00
|
|
|
|
2020-12-02 15:30:58 +00:00
|
|
|
#LessonBooking.hourly_check
|
|
|
|
|
#LessonSession.hourly_check
|
|
|
|
|
#TeacherPayment.hourly_check
|
2018-02-26 03:44:02 +00:00
|
|
|
User.hourly_check
|
2021-03-14 21:23:43 +00:00
|
|
|
AffiliatePartner.tally_up(Date.today)
|
2025-06-14 22:37:34 +00:00
|
|
|
EmailProfileReminder.send_reminders
|
2025-06-13 12:02:21 +00:00
|
|
|
EmailSignupSurvey.send_survey
|
2025-06-14 05:33:03 +00:00
|
|
|
GearSetupReminder.send_reminders
|
2025-07-25 23:13:21 +00:00
|
|
|
TestGearReminder.send_reminders
|
2025-08-14 16:36:18 +00:00
|
|
|
GroupSessionReminder.send_reminders
|
2025-10-13 17:02:44 +00:00
|
|
|
#TrialExpiresReminder.send_reminders
|
2021-01-17 01:37:34 +00:00
|
|
|
ConnectionManager.new.cleanup_dangling
|
2017-07-10 02:21:29 +00:00
|
|
|
|
2020-12-02 15:30:58 +00:00
|
|
|
@@log.info("done")
|
2016-04-06 02:23:15 +00:00
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|