[PR #453] [MERGED] Use uuid6 as the id for checkpoints #1481

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraph/pull/453
Author: @nfcampos
Created: 5/14/2024
Status: Merged
Merged: 5/14/2024
Merged by: @nfcampos

Base: mainHead: nc/14may/checkpoint-id-uuid6


📝 Commits (1)

  • 52b2c75 Use uuid6 as the id for checkpoints

📊 Changes

14 files changed (+71 additions, -85 deletions)

View changed files

📝 langgraph/channels/base.py (+3 -4)
📝 langgraph/checkpoint/aiosqlite.py (+2 -2)
📝 langgraph/checkpoint/base.py (+6 -0)
📝 langgraph/checkpoint/memory.py (+2 -2)
📝 langgraph/checkpoint/sqlite.py (+2 -2)
📝 langgraph/pregel/__init__.py (+15 -13)
📝 poetry.lock (+12 -1)
📝 pyproject.toml (+1 -0)
📝 tests/checkpoint/test_aiosqlite.py (+4 -15)
📝 tests/checkpoint/test_memory.py (+4 -15)
📝 tests/checkpoint/test_sqlite.py (+4 -15)
📝 tests/memory_assert.py (+2 -2)
📝 tests/test_pregel.py (+7 -7)
📝 tests/test_pregel_async.py (+7 -7)

📄 Description

  • this avoids conflicts if multiple processes creating checkpoints in same thread at same time
  • uuid6 with a monotically increasing clock_seq is sortable by creation time at ms precision (plus clock_seq for ties, plus 48 bits of randomness for further ties)

🔄 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/453 **Author:** [@nfcampos](https://github.com/nfcampos) **Created:** 5/14/2024 **Status:** ✅ Merged **Merged:** 5/14/2024 **Merged by:** [@nfcampos](https://github.com/nfcampos) **Base:** `main` ← **Head:** `nc/14may/checkpoint-id-uuid6` --- ### 📝 Commits (1) - [`52b2c75`](https://github.com/langchain-ai/langgraph/commit/52b2c755d728d262061ebffd63adf0e7398cb62a) Use uuid6 as the id for checkpoints ### 📊 Changes **14 files changed** (+71 additions, -85 deletions) <details> <summary>View changed files</summary> 📝 `langgraph/channels/base.py` (+3 -4) 📝 `langgraph/checkpoint/aiosqlite.py` (+2 -2) 📝 `langgraph/checkpoint/base.py` (+6 -0) 📝 `langgraph/checkpoint/memory.py` (+2 -2) 📝 `langgraph/checkpoint/sqlite.py` (+2 -2) 📝 `langgraph/pregel/__init__.py` (+15 -13) 📝 `poetry.lock` (+12 -1) 📝 `pyproject.toml` (+1 -0) 📝 `tests/checkpoint/test_aiosqlite.py` (+4 -15) 📝 `tests/checkpoint/test_memory.py` (+4 -15) 📝 `tests/checkpoint/test_sqlite.py` (+4 -15) 📝 `tests/memory_assert.py` (+2 -2) 📝 `tests/test_pregel.py` (+7 -7) 📝 `tests/test_pregel_async.py` (+7 -7) </details> ### 📄 Description - this avoids conflicts if multiple processes creating checkpoints in same thread at same time - uuid6 with a monotically increasing clock_seq is sortable by creation time at ms precision (plus clock_seq for ties, plus 48 bits of randomness for further ties) --- <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:50 -05:00
yindo closed this issue 2026-02-20 17:44:50 -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#1481