ALL-4636 Resolution for connection leaks (#12144)

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
Tim O'Farrell
2025-12-23 12:02:56 -07:00
committed by GitHub
parent f6e7628bff
commit 8d0e7a92b8
3 changed files with 33 additions and 6 deletions

View File

@@ -510,6 +510,10 @@ async def delete_conversation(
if v1_result is not None:
return v1_result
# Close connections
await db_session.close()
await httpx_client.aclose()
# V0 conversation logic
return await _delete_v0_conversation(conversation_id, user_id)
@@ -551,11 +555,8 @@ async def _try_delete_v1_conversation(
httpx_client,
)
)
except (ValueError, TypeError):
# Not a valid UUID, continue with V0 logic
pass
except Exception:
# Some other error, continue with V0 logic
# Continue with V0 logic
pass
return result