Class: HealthCheck::SidekiqHealthCheck
- Inherits:
-
Object
- Object
- HealthCheck::SidekiqHealthCheck
- Extended by:
- BaseHealthCheck
- Defined in:
- lib/health_check/sidekiq_health_check.rb
Class Method Summary collapse
Methods included from BaseHealthCheck
Class Method Details
.check ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/health_check/sidekiq_health_check.rb', line 5 def self.check unless defined?(::Sidekiq) raise "Wrong configuration. Missing 'sidekiq' gem" end ::Sidekiq.redis do |r| res = r.ping res == 'PONG' ? '' : "Sidekiq.redis.ping returned #{res.inspect} instead of PONG" end rescue Exception => e create_error 'sidekiq-redis', e. end |