2013-03-10 08:51:49 -04:00
|
|
|
desc "This task is called by the Heroku scheduler add-on"
|
|
|
|
|
|
|
|
# Every day at 6am
|
|
|
|
task :enqueue_digest_emails => :environment do
|
|
|
|
Jobs::EnqueueDigestEmails.new.execute(nil)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Every day at 4am
|
|
|
|
task :category_stats => :environment do
|
|
|
|
Jobs::CategoryStats.new.execute(nil)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Every 10 minutes
|
2013-03-28 13:02:59 -04:00
|
|
|
task :periodical_updates => :environment do
|
|
|
|
Jobs::PeriodicalUpdates.new.execute(nil)
|
2013-03-10 08:51:49 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
# Every day
|
|
|
|
task :version_check => :environment do
|
|
|
|
Jobs::VersionCheck.new.execute(nil)
|
|
|
|
end
|