mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 12:43:54 -06:00
5d4fcc62bb
This reverts commit 17bed44405
.
16 lines
342 B
Ruby
16 lines
342 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)
|
|
Demon::Sidekiq::QUEUE_IDS.each do |identifier|
|
|
Jobs.enqueue(:run_heartbeat, queue_name: identifier, queue: identifier)
|
|
end
|
|
end
|
|
end
|
|
end
|