discourse/app/jobs/scheduled/heartbeat.rb
2019-10-14 13:03:22 +03:00

14 lines
242 B
Ruby

# frozen_string_literal: true
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