fix(caching.py): close redis connection pool upon proxy shutdown

This commit is contained in:
Krrish Dholakia 2024-03-16 10:39:44 -07:00
parent a8ad99cf76
commit 48f96dd563
2 changed files with 2 additions and 1 deletions

View file

@ -7430,6 +7430,7 @@ async def shutdown_event():
if litellm.cache is not None:
await litellm.cache.disconnect()
## RESET CUSTOM VARIABLES ##
cleanup_router_config_variables()