mirror of https://github.com/peter4431/rq.git
Update README (and example).
parent
1a893e60cf
commit
22f3da1832
@ -1,9 +1,10 @@
|
|||||||
from redis import Redis
|
from rq import Queue, Worker
|
||||||
from rq import conn
|
|
||||||
from rq.daemon import run_daemon
|
|
||||||
|
|
||||||
# Tell rq what Redis connection to use
|
# Tell rq what Redis connection to use
|
||||||
|
from redis import Redis
|
||||||
|
from rq import conn
|
||||||
conn.push(Redis())
|
conn.push(Redis())
|
||||||
|
|
||||||
listen_on_queues = ['default']
|
if __name__ == '__main__':
|
||||||
run_daemon(listen_on_queues)
|
q = Queue()
|
||||||
|
Worker(q).work_forever()
|
||||||
|
Loading…
Reference in New Issue