init
This commit is contained in:
commit
fe636432d0
154 files changed
+30381
No files matched your search
@@ -0,0 +1,14 @@
|
||||
from redis import Redis
|
||||
from rq import Worker
|
||||
|
||||
from app.config import get_settings
|
||||
|
||||
|
||||
settings = get_settings()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
connection = Redis.from_url(settings.redis_url)
|
||||
worker = Worker([settings.rq_queue_name], connection=connection)
|
||||
worker.work()
|
||||
|
||||
Reference in new issue
Block a user