mirror of https://github.com/rq/rq.git
docs: add warning of `decode_responses` (#1833)
This commit is contained in:
parent
2c6c7ae586
commit
7bbef7e05a
|
@ -162,3 +162,17 @@ q = Queue(connection=conn)
|
|||
|
||||
Setting a `socket_timeout` with a lower value than the `default_worker_ttl` will cause a `TimeoutError`
|
||||
since it will interrupt the worker while it gets new jobs from the queue.
|
||||
|
||||
|
||||
### Encoding / Decoding
|
||||
|
||||
The encoding and decoding of Redis objects occur in multiple locations within the codebase,
|
||||
which means that the `decode_responses=True` argument of the Redis connection is not currently supported.
|
||||
|
||||
```python
|
||||
from redis import Redis
|
||||
from rq import Queue
|
||||
|
||||
conn = Redis(..., decode_responses=True) # This is not supported
|
||||
q = Queue(connection=conn)
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue