mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 04:13:22 +08:00
e2449f9f23
This reverts commit c3497559be
.
14 lines
238 B
Ruby
14 lines
238 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
|