Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support redis-client gem #131

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

y-yagi
Copy link

@y-yagi y-yagi commented May 21, 2023

Since 7.0, Sidekiq uses redis-client by default. sidekiq/sidekiq@0b3e4c2

This patch allows to users use health_check without adding redis gem with Sidekiq >= 7.0.

Fixes #128.

Since 7.0, Sidekiq uses `redis-client` by default.
sidekiq/sidekiq@0b3e4c2

This patch allows to users use `health_check` without adding `redis` gem
with Sidekiq >= 7.0.

Fixes Purple-Devs#128.
@jmarchello
Copy link
Contributor

Thank you for your contribution! We'll get this reviewed and tested as soon as we can

@y-yagi
Copy link
Author

y-yagi commented Jun 26, 2023

@jmarchello Sorry to ping, but what do you think about this and #134?

@jmarchello
Copy link
Contributor

This code looks good. I'm actively working on getting our tests running again and once that's done I'll be able to test and merge this change

@ArmandoAssuncao
Copy link

Add || defined?(::RedisClient) in line: https://github.com/Purple-Devs/health_check/blob/master/lib/health_check/utils.rb#L55

when 'redis-if-present'
  errors << HealthCheck::RedisHealthCheck.check if defined?(::Redis) || defined?(::RedisClient)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Check for redis gem does not work
3 participants