refactor(proxy_server.py): using celery workers instead of rq for concurrency

This commit is contained in:
Krrish Dholakia 2023-11-21 16:31:20 -08:00
parent 8c98a2c899
commit b16646e584
6 changed files with 84 additions and 32 deletions

View file

@ -0,0 +1,9 @@
import os
from multiprocessing import Process
def run_worker():
os.system("celery worker -A your_project_name.celery_app --concurrency=10 --loglevel=info")
if __name__ == "__main__":
worker_process = Process(target=run_worker)
worker_process.start()