Sha256: 27a2483b523e09329b218c5f92fdefbb023c9b2f4b4812754152b2a9339a8c0c

Contents?: true

Size: 354 Bytes

Versions: 93

Compression:

Stored size: 354 Bytes

Contents

module GovukHealthcheck
  class SidekiqRedis
    def name
      :redis_connectivity
    end

    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
  end
end

Version data entries

93 entries across 93 versions & 1 rubygems

Version Path
govuk_app_config-9.14.2 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-9.14.1 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-9.14.0 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-9.13.1 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-9.13.0 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-9.12.0 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-9.11.2 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-9.11.1 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-9.11.0 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-9.10.0 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-9.9.2 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-9.9.1 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-9.9.0 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-9.8.2 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-9.8.1 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-9.8.0 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-9.7.0 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-9.6.0 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-9.5.0 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-9.4.0 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb