rq/examples/run_worker.py

8 lines
139 B
Python

from redis import Redis
from rq import push_connection
from rq.daemon import run_daemon
push_connection(Redis())
run_daemon(['default'])