[PR #5931] feat(sdk-py): define aclose method to LangGraphClient #4725

Closed
opened 2026-02-20 17:50:39 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langchain-ai/langgraph/pull/5931

State: closed
Merged: Yes


This PR adds an aclose method to the LangGraphClient.

When using the client in a FastAPI application, it's common to share a single instance across the application's lifespan. The absence of an aclose method makes it difficult to gracefully close the underlying HTTP session on application shutdown. This change enables proper resource management by allowing the client to be closed cleanly.

**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/5931 **State:** closed **Merged:** Yes --- This PR adds an aclose method to the LangGraphClient. When using the client in a FastAPI application, it's common to share a single instance across the application's lifespan. The absence of an aclose method makes it difficult to gracefully close the underlying HTTP session on application shutdown. This change enables proper resource management by allowing the client to be closed cleanly.
yindo added the pull-request label 2026-02-20 17:50:39 -05:00
yindo closed this issue 2026-02-20 17:50:39 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#4725