mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 23:55:19 +08:00
473a64d39d
hotness. Note: People on Heroku will have to update their jobs to the new structure in Heroku.md
20 lines
465 B
Ruby
20 lines
465 B
Ruby
require 'clockwork'
|
|
require_relative 'boot'
|
|
require_relative 'environment'
|
|
|
|
# These are jobs you should run on a regular basis to make your
|
|
# 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')
|
|
every(10.minutes, 'periodical_updates')
|
|
every(1.day, 'version_check')
|
|
every(1.minute, 'clockwork_heartbeat')
|
|
|
|
end
|