Closed rift137 closed 6 months ago
Why don't you delay the initialization? Can we do it by passing proc or so? Sorry, I'm not familiar with recent rails.
@supercaracal would be best to delay connecting to the first query.
Otherwise it makes it hard to provide a client to many APIs.
This would also mirror how the standalone client works.
I understood. I'll fix it ASAP.
The version of 0.10.0
have been released in redis-cluster-client for the fix.
Thank you @supercaracal 🙇
During the build process locally and on our CI servers our Redis cluster is not available. Is there a way to prevent redis-clustering from trying to connect to the server during asset precomp and app initialization?
Reminiscent of this
I've tried redis 4.6.0 and redis 5.2.0 with redis-clustering 5.2.0
Ruby 3.0.6, Rails 6.1.7.6
Settings.redis_cluster ex:
"111.0.0.11:7000,111.0.0.11:7001,111.0.0.11:7002,111.0.0.11:7003,111.0.0.11:7004,111.0.0.11:7005"
Docker build stack trace:
I've tried supplying a dummy cluster to the build locally but haven't been successful with that yet. Thanks