2014-05-05 08:49:29 +00:00
|
|
|
from rq import Connection, Queue, Worker
|
2011-11-14 14:15:05 +00:00
|
|
|
|
2011-11-15 21:45:51 +00:00
|
|
|
if __name__ == '__main__':
|
2012-05-21 06:08:59 +00:00
|
|
|
# Tell rq what Redis connection to use
|
|
|
|
with Connection():
|
|
|
|
q = Queue()
|
|
|
|
Worker(q).work()
|