[PR #1803] [MERGED] Raise exception if sync method on async checkpointer is called from event loop thread #2304

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraph/pull/1803
Author: @nfcampos
Created: 9/23/2024
Status: Merged
Merged: 9/23/2024
Merged by: @nfcampos

Base: mainHead: nc/23sep/exc-async-checkpointer-block


📝 Commits (1)

  • e71c24e Raise exception if sync method on async checkpointer is called from main thread

📊 Changes

2 files changed (+24 additions, -0 deletions)

View changed files

📝 libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py (+12 -0)
📝 libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py (+12 -0)

📄 Description

  • The thread running the event loop can block waiting for a coro to run, only background threads can

Closes #1800


🔄 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/1803 **Author:** [@nfcampos](https://github.com/nfcampos) **Created:** 9/23/2024 **Status:** ✅ Merged **Merged:** 9/23/2024 **Merged by:** [@nfcampos](https://github.com/nfcampos) **Base:** `main` ← **Head:** `nc/23sep/exc-async-checkpointer-block` --- ### 📝 Commits (1) - [`e71c24e`](https://github.com/langchain-ai/langgraph/commit/e71c24ea9b70a700d8f0f605bf78c9c680423041) Raise exception if sync method on async checkpointer is called from main thread ### 📊 Changes **2 files changed** (+24 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py` (+12 -0) 📝 `libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py` (+12 -0) </details> ### 📄 Description - The thread running the event loop can block waiting for a coro to run, only background threads can Closes #1800 --- <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:46:46 -05:00
yindo closed this issue 2026-02-20 17:46:46 -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#2304