mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 16:18:42 -05:00
12 lines
207 B
Ruby
12 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
|