[PR #1370] [MERGED] Checkpoint errors in pending_writes, expose under StateSnapshot.tasks #2042

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

📋 Pull Request Information

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

Base: mainHead: nc/16aug/checkpoint-errors


📝 Commits (1)

  • e916cab Checkpoint errors in pending_writes, expose under StateSnapshot.tasks

📊 Changes

12 files changed (+504 additions, -99 deletions)

View changed files

📝 libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py (+10 -1)
📝 libs/langgraph/langgraph/constants.py (+2 -0)
📝 libs/langgraph/langgraph/managed/base.py (+1 -5)
📝 libs/langgraph/langgraph/managed/is_last_step.py (+1 -2)
📝 libs/langgraph/langgraph/pregel/__init__.py (+55 -18)
📝 libs/langgraph/langgraph/pregel/algo.py (+42 -42)
📝 libs/langgraph/langgraph/pregel/debug.py (+45 -2)
📝 libs/langgraph/langgraph/pregel/loop.py (+9 -1)
📝 libs/langgraph/langgraph/pregel/types.py (+10 -4)
📝 libs/langgraph/tests/any_str.py (+18 -0)
📝 libs/langgraph/tests/test_pregel.py (+162 -17)
📝 libs/langgraph/tests/test_pregel_async.py (+149 -7)

📄 Description

  • Save errors produced by tasks, under pending_writes
  • Re-work logic to cancel other tasks when one fails, ready to change for interrupt exception
  • Update serializer to handle exceptions
  • Update get_state/get_state_history with new return value property "tasks" which contains a richer description of the next tasks, currently with id, name and error (if already ran and errored)

🔄 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/1370 **Author:** [@nfcampos](https://github.com/nfcampos) **Created:** 8/16/2024 **Status:** ✅ Merged **Merged:** 8/16/2024 **Merged by:** [@nfcampos](https://github.com/nfcampos) **Base:** `main` ← **Head:** `nc/16aug/checkpoint-errors` --- ### 📝 Commits (1) - [`e916cab`](https://github.com/langchain-ai/langgraph/commit/e916cab08ff2e1a044553e59939b05c7b93f274d) Checkpoint errors in pending_writes, expose under StateSnapshot.tasks ### 📊 Changes **12 files changed** (+504 additions, -99 deletions) <details> <summary>View changed files</summary> 📝 `libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py` (+10 -1) 📝 `libs/langgraph/langgraph/constants.py` (+2 -0) 📝 `libs/langgraph/langgraph/managed/base.py` (+1 -5) 📝 `libs/langgraph/langgraph/managed/is_last_step.py` (+1 -2) 📝 `libs/langgraph/langgraph/pregel/__init__.py` (+55 -18) 📝 `libs/langgraph/langgraph/pregel/algo.py` (+42 -42) 📝 `libs/langgraph/langgraph/pregel/debug.py` (+45 -2) 📝 `libs/langgraph/langgraph/pregel/loop.py` (+9 -1) 📝 `libs/langgraph/langgraph/pregel/types.py` (+10 -4) 📝 `libs/langgraph/tests/any_str.py` (+18 -0) 📝 `libs/langgraph/tests/test_pregel.py` (+162 -17) 📝 `libs/langgraph/tests/test_pregel_async.py` (+149 -7) </details> ### 📄 Description - Save errors produced by tasks, under pending_writes - Re-work logic to cancel other tasks when one fails, ready to change for interrupt exception - Update serializer to handle exceptions - Update get_state/get_state_history with new return value property "tasks" which contains a richer description of the next tasks, currently with id, name and error (if already ran and errored) --- <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:09 -05:00
yindo closed this issue 2026-02-20 17:46:09 -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#2042