2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2014-04-22 23:13:18 -04:00
|
|
|
module Jobs
|
|
|
|
|
|
|
|
# used to ensure at least 1 sidekiq is running correctly
|
2019-10-02 00:01:53 -04:00
|
|
|
class Heartbeat < ::Jobs::Scheduled
|
2014-04-22 23:13:18 -04:00
|
|
|
every 3.minute
|
|
|
|
|
|
|
|
def execute(args)
|
2019-10-14 06:03:22 -04:00
|
|
|
::Jobs.enqueue(:run_heartbeat, {})
|
2014-04-22 23:13:18 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|