Sha256: 640fb6731bf5e32ddf147c56f29fbb13b6ac173c55010771318e4a347665ed50

Contents?: true

Size: 355 Bytes

Versions: 16

Compression:

Stored size: 355 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

16 entries across 16 versions & 1 rubygems

Version Path
govuk_app_config-2.2.0 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-2.1.2 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-2.1.1 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-2.1.0 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-2.0.3 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-2.0.2 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-2.0.1 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-2.0.0 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-1.20.2 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-1.20.1 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-1.20.0 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-1.19.0 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-1.18.1 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-1.17.0 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-1.16.3 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
govuk_app_config-1.16.1 lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb