rq/examples/run_worker.py

9 lines
167 B
Python
Raw Normal View History

from rq import Queue, Worker, use_connection
2011-11-14 14:15:05 +00:00
# Tell rq what Redis connection to use
use_connection()
2011-11-14 14:15:05 +00:00
2011-11-15 21:45:51 +00:00
if __name__ == '__main__':
q = Queue()
Worker(q).work()