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

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