forked from phoenix/litellm-mirror
refactor(proxy_server.py): using celery workers instead of rq for concurrency
This commit is contained in:
parent
8c98a2c899
commit
b16646e584
6 changed files with 84 additions and 32 deletions
9
litellm/proxy/queue/celery_worker.py
Normal file
9
litellm/proxy/queue/celery_worker.py
Normal 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()
|
Loading…
Add table
Add a link
Reference in a new issue