Class: HeyDoctor::CheckSidekiqHealthService
- Inherits:
-
Object
- Object
- HeyDoctor::CheckSidekiqHealthService
- Defined in:
- app/services/hey_doctor/check_sidekiq_health_service.rb
Constant Summary collapse
- SUCCESS =
{ success: true, message: 'Sidekiq is connected' }.freeze
- ERROR =
{ success: false, message: 'Error connecting to sidekiq' }.freeze
- NO_EXECUTOR =
{ success: false, message: 'None sidekiq host was found, add it to the ENV SIDEKIQ_HOSTS' \ ' listing your machine(s) ip or dns using ; for each host' }.freeze
Class Method Summary collapse
Class Method Details
.call ⇒ Object
21 22 23 24 25 |
# File 'app/services/hey_doctor/check_sidekiq_health_service.rb', line 21 def call return NO_EXECUTOR if hosts.blank? hosts.map { |host| response(host).merge({ host: host }) } end |