You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following up on #127 where I said that there is an issue about redis-client. Well the issue isn't really redis-client. The issue is that the case of redis not being installed isn't handled gracefully. The check unless defined?(::Redis) doesn't seem to work. It fails with "health_check failed: uninitialized constant #Class:HealthCheck::RedisHealthCheck::Redis".
But I think that reveals another issue. The gem has this hidden dependency on the redis gem. In our project this error occurred when we upgraded Sidekiq to version 7. It doesn't ship with redis anymore but instead redis-client. So in order to fix this we need to add redis to our dependencies again. Now we have dependencies on two redis clients. Wouldn't it be nice if health_check wouldn't force you to install either, but rather use the one that is available? Or make it configurable. Just throwing ideas around.
What do you think?
P.S. I know about the sidekiq-redis check. I think this could still be an issue for people who don't use Sidekiq at all, just redis-client.
The text was updated successfully, but these errors were encountered:
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.
FixesPurple-Devs#128.
Hey!
Following up on #127 where I said that there is an issue about redis-client. Well the issue isn't really redis-client. The issue is that the case of redis not being installed isn't handled gracefully. The check
unless defined?(::Redis)
doesn't seem to work. It fails with "health_check failed: uninitialized constant #Class:HealthCheck::RedisHealthCheck::Redis".But I think that reveals another issue. The gem has this hidden dependency on the redis gem. In our project this error occurred when we upgraded Sidekiq to version 7. It doesn't ship with redis anymore but instead redis-client. So in order to fix this we need to add redis to our dependencies again. Now we have dependencies on two redis clients. Wouldn't it be nice if health_check wouldn't force you to install either, but rather use the one that is available? Or make it configurable. Just throwing ideas around.
What do you think?
P.S. I know about the sidekiq-redis check. I think this could still be an issue for people who don't use Sidekiq at all, just redis-client.
The text was updated successfully, but these errors were encountered: