mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 00:57:33 +08:00
[Feature] add dealer manager to reuse the connection (#3471)
* [BugFix] fix control signal release failed * [BugFix] fix control signal release failed * update * update * update * [Feature] add dealer manager to reuse the connection * fix * fix * fix * fix * fix * fix * Create test_dealer_connection_manager.py * Delete test/entrypoints/openai directory * Update test_dealer_connection_manager.py * Update test_dealer_connection_manager.py
This commit is contained in:
@@ -154,6 +154,7 @@ async def lifespan(app: FastAPI):
|
||||
yield
|
||||
# close zmq
|
||||
try:
|
||||
await engine_client.connection_manager.close()
|
||||
engine_client.zmq_client.close()
|
||||
from prometheus_client import multiprocess
|
||||
|
||||
|
Reference in New Issue
Block a user