Update outdated sample codes in README.md

* Use explicit connection management instead of `use_connection()`.
* Use `rq worker` instead of `rqworker`.
main
orangain 9 years ago
parent a14041ae1a
commit b92bea9398

@ -38,9 +38,10 @@ You do use the excellent [requests][r] package, don't you?
Then, create an RQ queue:
```python
from rq import Queue, use_connection
use_connection()
q = Queue()
from redis import Redis
from rq import Queue
q = Queue(connection=Redis())
```
And enqueue the function call:

Loading…
Cancel
Save