summaryrefslogtreecommitdiff
path: root/examples/run_worker.py
blob: 7c8adaeb8c9ec53f1b626ccb5275c0527c53ee1d (plain)
1
2
3
4
5
6
7
8
from rq import Queue, Worker, Connection


if __name__ == '__main__':
    # Tell rq what Redis connection to use
    with Connection():
        q = Queue()
        Worker(q).work()