[PR #864] [MERGED] [Docstrings] Add reminder to close connection #1747

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraph/pull/864
Author: @hinthornw
Created: 6/27/2024
Status: Merged
Merged: 6/27/2024
Merged by: @hinthornw

Base: mainHead: wfh/note_on_closing_connection


📝 Commits (1)

  • 25ab9fb [Docstrings] Add reminder to close connection

📊 Changes

1 file changed (+17 additions, -0 deletions)

View changed files

📝 libs/langgraph/langgraph/checkpoint/aiosqlite.py (+17 -0)

📄 Description

In AsyncSqliteSaver, otherwise your program will "hang".

Recommend using

async with AsyncSqliteSaver.from_conn_str(...) as checkpointer:
    graph = builder.compile(checkpointer=...)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/langgraph/pull/864 **Author:** [@hinthornw](https://github.com/hinthornw) **Created:** 6/27/2024 **Status:** ✅ Merged **Merged:** 6/27/2024 **Merged by:** [@hinthornw](https://github.com/hinthornw) **Base:** `main` ← **Head:** `wfh/note_on_closing_connection` --- ### 📝 Commits (1) - [`25ab9fb`](https://github.com/langchain-ai/langgraph/commit/25ab9fbc95accfc94d6692b5cb392e42b0997382) [Docstrings] Add reminder to close connection ### 📊 Changes **1 file changed** (+17 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `libs/langgraph/langgraph/checkpoint/aiosqlite.py` (+17 -0) </details> ### 📄 Description In AsyncSqliteSaver, otherwise your program will "hang". Recommend using ```python async with AsyncSqliteSaver.from_conn_str(...) as checkpointer: graph = builder.compile(checkpointer=...) ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-20 17:45:27 -05:00
yindo closed this issue 2026-02-20 17:45:27 -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#1747