mirror of https://github.com/peter4431/rq.git
Change back `path` connection keyword argument to `unix_socket_path` (#1403)
If a UNIX socket path is passed to the constructor of the Redis client, `redis.client.Redis`, the value of keyword argument `unix_socket_path` is passed to the constructor of `UnixDomainSocketConnection` with the key `path`. When RQ's scheduler creates its own Redis connection, it instantiates class `redis.client.Redis` with keyword arguments obtained from the connection pool. If the pooled connection is a `UnixDomainSocketConnection`, its keyword arguments contain `path`, as given on instantiation. This results in a `TypeError: __init__() got an unexpected keyword argument 'path'`. This change renames the key back to `unix_socket_path` before the keyword arguments dictionary is used to instantiate `redis.client.Redis`.main
parent
aa5dbf4af3
commit
617b18a496
Loading…
Reference in New Issue