2013-02-05 13:16:51 -06:00
|
|
|
require 'clockwork'
|
|
|
|
require_relative 'boot'
|
|
|
|
require_relative 'environment'
|
|
|
|
|
2013-02-25 10:42:20 -06:00
|
|
|
# These are jobs you should run on a regular basis to make your
|
2013-02-05 13:16:51 -06:00
|
|
|
# forum work properly.
|
|
|
|
|
|
|
|
module Clockwork
|
|
|
|
handler do |job|
|
|
|
|
Jobs.enqueue(job, all_sites: true)
|
|
|
|
end
|
|
|
|
|
|
|
|
every(1.day, 'enqueue_digest_emails', at: '06:00')
|
|
|
|
every(1.day, 'category_stats', at: '04:00')
|
2013-04-04 23:29:46 -05:00
|
|
|
every(1.day, 'ensure_db_consistency', at: '02:00')
|
2013-03-28 12:02:59 -05:00
|
|
|
every(10.minutes, 'periodical_updates')
|
2013-02-19 14:16:50 -06:00
|
|
|
every(1.day, 'version_check')
|
2013-03-21 15:51:19 -05:00
|
|
|
every(1.minute, 'clockwork_heartbeat')
|
2013-02-05 13:16:51 -06:00
|
|
|
end
|