mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 23:42:07 +01:00
11 lines
277 B
Python
11 lines
277 B
Python
from handler.redis_handler import redis_client
|
|
from rq import Connection, Queue, Worker
|
|
|
|
listen = ["high", "default", "low"]
|
|
|
|
if __name__ == "__main__":
|
|
# Start the worker
|
|
with Connection(redis_client):
|
|
worker = Worker(map(Queue, listen))
|
|
worker.work()
|