redis.connection.ConnectionPool API change: get_connection does not accept arguments#2294
redis.connection.ConnectionPool API change: get_connection does not accept arguments#2294auvipy merged 3 commits intocelery:mainfrom
Conversation
for more information, see https://pre-commit.ci
|
Why using And at least from v4.5.2 (which is the current minimum target of kombu): This could have just been _REDIS_GET_CONNECTION_WITHOUT_ARGS = redis.VERSION >= (5, 3)No extra imports required, no extra dependencies. |
|
The motivation for this is described in this comment: #2294 (comment). |
I agree with the reasoning of @sevdog here |
That would be a good solution when you have a generic dependency and you must handle it in a generic way. Since the dependency here is known and because this aims to fix a derecation warning adding a new dependency and two imports to address this looks a bit of overengineering. |
|
I will open a pr to fix this |
…ccept arguments (celery#2294) * redis.connection.ConnectionPool API change: get_connection does not accept arguments --------- Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Closes #2293