[PR #1498] [MERGED] Avoid storing Sends twice in memory and postgres checkpointers #2112

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraph/pull/1498
Author: @nfcampos
Created: 8/27/2024
Status: Merged
Merged: 8/27/2024
Merged by: @nfcampos

Base: mainHead: nc/27aug/store-sends-once


📝 Commits (2)

  • 9b6100b Avoid storing Sends twice in memory and postgres checkpointers
  • 8d23929 Remove print

📊 Changes

5 files changed (+95 additions, -44 deletions)

View changed files

📝 libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py (+10 -8)
📝 libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py (+13 -13)
📝 libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py (+24 -19)
📝 libs/checkpoint/langgraph/checkpoint/memory/__init__.py (+47 -4)
📝 libs/checkpoint/langgraph/checkpoint/serde/types.py (+1 -0)

📄 Description

  • Sends are stored through put_writes, so we don't need to also store them inside checkpoint object
  • On reading checkpoint, reconstruct pending_sends from the stored writes

🔄 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/1498 **Author:** [@nfcampos](https://github.com/nfcampos) **Created:** 8/27/2024 **Status:** ✅ Merged **Merged:** 8/27/2024 **Merged by:** [@nfcampos](https://github.com/nfcampos) **Base:** `main` ← **Head:** `nc/27aug/store-sends-once` --- ### 📝 Commits (2) - [`9b6100b`](https://github.com/langchain-ai/langgraph/commit/9b6100bc4fbb6b03e6862e8a9926b0a3bcd75681) Avoid storing Sends twice in memory and postgres checkpointers - [`8d23929`](https://github.com/langchain-ai/langgraph/commit/8d23929288d19cde58669d1828799ab840504626) Remove print ### 📊 Changes **5 files changed** (+95 additions, -44 deletions) <details> <summary>View changed files</summary> 📝 `libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py` (+10 -8) 📝 `libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py` (+13 -13) 📝 `libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py` (+24 -19) 📝 `libs/checkpoint/langgraph/checkpoint/memory/__init__.py` (+47 -4) 📝 `libs/checkpoint/langgraph/checkpoint/serde/types.py` (+1 -0) </details> ### 📄 Description - Sends are stored through put_writes, so we don't need to also store them inside checkpoint object - On reading checkpoint, reconstruct pending_sends from the stored writes --- <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:18 -05:00
yindo closed this issue 2026-02-20 17:46:18 -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#2112