Code Monkey home page Code Monkey logo

Comments (5)

coleifer avatar coleifer commented on June 12, 2024 1

Oh nice, thank you for jumping in @andryyy

from huey.

stephenhutch avatar stephenhutch commented on June 12, 2024

It is pointing to redis instance with cluster mode enabled from what can be seen.

from huey.

coleifer avatar coleifer commented on June 12, 2024

I'd suggest raising this with the redis-py maintainers. You're supposed to be able to initialize a ConnectionPool with arguments that are then passed to the connections, but it looks like it isn't handling the ssl argument properly somehow. Here's an example you can share with them:

from redis import *
r = Redis(ssl=True)  # OK

p = ConnectionPool(ssl=True)
r = Redis(connection_pool=p)  # Doesn't work.

p = ConnectionPool.from_url('rediss://')
r = Redis(connection_pool=p)  # Somehow this is OK, though?

In other words, I think ConnectionPool should handle the ssl= keyword argument, but for some reason it does not. However the ConnectionPool clearly supports specifying SSL because it accepts URLs using the rediss:// protocol.

from huey.

andryyy avatar andryyy commented on June 12, 2024

Try connection_class=redis.SSLConnection as argument.

from huey.

stephenhutch avatar stephenhutch commented on June 12, 2024

Example of usage:

redis_connection_pool = redis.ConnectionPool(
    host='redis.example.com', port=6379, connection_class=redis.SSLConnection
)

huey = RedisHuey(
    name='test-ssl',
    connection_pool=redis_connection_pool
)

from huey.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.