mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
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
|
@ -18,4 +18,9 @@ def start_rq_worker():
|
|||
worker = Worker([queue], connection=redis_conn)
|
||||
except Exception as e:
|
||||
print(f"Error setting up worker: {e}")
|
||||
exit()
|
||||
exit()
|
||||
|
||||
with Connection(redis_conn):
|
||||
worker.work()
|
||||
|
||||
start_rq_worker()
|
Loading…
Add table
Add a link
Reference in a new issue