discourse/app/jobs/scheduled/heartbeat.rb
Sam 7c57d74e85 FEATURE: unicorn sidekiq will restart sidekiq on complete failure.
(checks every 30 minutes for complete failure)
2014-04-23 13:13:18 +10:00

11 lines
207 B
Ruby

module Jobs
# used to ensure at least 1 sidekiq is running correctly
class Heartbeat < Jobs::Scheduled
every 3.minute
def execute(args)
Jobs.enqueue(:run_heartbeat, {})
end
end
end