-
Notifications
You must be signed in to change notification settings - Fork 1k
Redis::Cluster attempting Redis connection during asset precompilation #1276
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
Comments
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 |
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
The text was updated successfully, but these errors were encountered: