Class: GovukHealthcheck::SidekiqRedis

Inherits:
Object
  • Object
show all
Defined in:
lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb

Instance Method Summary collapse

Instance Method Details

#nameObject



3
4
5
# File 'lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb', line 3

def name
  :redis_connectivity
end

#statusObject



7
8
9
10
11
12
13
# File 'lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb', line 7

def status
  Sidekiq.redis_info ? OK : CRITICAL
rescue StandardError
  # One would expect a Redis::BaseConnectionError, but this should be
  # critical if any exception is raised when making a call to redis.
  CRITICAL
end