discourse/app/jobs/scheduled/heartbeat.rb

12 lines
207 B
Ruby
Raw Normal View History

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