discourse/lib/tasks/scheduler.rake

22 lines
470 B
Ruby
Raw Normal View History

2013-03-10 08:51:49 -04:00
desc "This task is called by the Heroku scheduler add-on"
# Every day at 6am
2017-07-27 21:20:09 -04:00
task enqueue_digest_emails: :environment do
2013-03-10 08:51:49 -04:00
Jobs::EnqueueDigestEmails.new.execute(nil)
end
# Every day at 4am
2017-07-27 21:20:09 -04:00
task category_stats: :environment do
2013-03-10 08:51:49 -04:00
Jobs::CategoryStats.new.execute(nil)
end
# Every 10 minutes
2017-07-27 21:20:09 -04:00
task periodical_updates: :environment do
Jobs::PeriodicalUpdates.new.execute(nil)
2013-03-10 08:51:49 -04:00
end
# Every day
2017-07-27 21:20:09 -04:00
task version_check: :environment do
2013-03-10 08:51:49 -04:00
Jobs::VersionCheck.new.execute(nil)
2017-07-27 21:20:09 -04:00
end