[PR #19] [CLOSED] Add an idempotency key for each chain in each step #1176

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraph/pull/19
Author: @nfcampos
Created: 11/16/2023
Status: Closed

Base: mainHead: nc/idempotency-key


📝 Commits (2)

  • 3ce355d Add an idempotency key for each chain in each step
  • f39a8e8 Add config

📊 Changes

6 files changed (+121 additions, -10 deletions)

View changed files

📝 permchain/pregel/__init__.py (+20 -8)
📝 permchain/pregel/debug.py (+4 -2)
permchain/pregel/idempotency.py (+47 -0)
📝 permchain/pregel/reserved.py (+4 -0)
📝 tests/test_pregel.py (+23 -0)
📝 tests/test_pregel_async.py (+23 -0)

📄 Description

The idea is this should be a stable, unique id for the execution, so it can be used eg. for caching or making side effects idempotent. It should change if the channel values have changed, and remain same otherwise, even across separate invocations.

If we don't like pickle for this alternatively we can use eg. https://zepworks.com/deepdiff/5.6.0/deephash.html


🔄 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/19 **Author:** [@nfcampos](https://github.com/nfcampos) **Created:** 11/16/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `nc/idempotency-key` --- ### 📝 Commits (2) - [`3ce355d`](https://github.com/langchain-ai/langgraph/commit/3ce355d2c4610aae6c5e0a2aab64ebccbb926051) Add an idempotency key for each chain in each step - [`f39a8e8`](https://github.com/langchain-ai/langgraph/commit/f39a8e8d96a49a75ffab41cbe315c576f9066f4c) Add config ### 📊 Changes **6 files changed** (+121 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `permchain/pregel/__init__.py` (+20 -8) 📝 `permchain/pregel/debug.py` (+4 -2) ➕ `permchain/pregel/idempotency.py` (+47 -0) 📝 `permchain/pregel/reserved.py` (+4 -0) 📝 `tests/test_pregel.py` (+23 -0) 📝 `tests/test_pregel_async.py` (+23 -0) </details> ### 📄 Description The idea is this should be a stable, unique id for the execution, so it can be used eg. for caching or making side effects idempotent. It should change if the channel values have changed, and remain same otherwise, even across separate invocations. If we don't like pickle for this alternatively we can use eg. https://zepworks.com/deepdiff/5.6.0/deephash.html --- <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:44:06 -05:00
yindo closed this issue 2026-02-20 17:44:06 -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#1176