[PR #31] [MERGED] fix(api): make sure to persist after a while #35

Closed
opened 2026-02-16 04:17:04 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs-api/pull/31
Author: @dqbd
Created: 3/19/2025
Status: Merged
Merged: 3/20/2025
Merged by: @dqbd

Base: mainHead: dqbd/persist-fix


📝 Commits (1)

  • 48167e4 fix(api): make sure to persist after a while

📊 Changes

3 files changed (+10 additions, -5 deletions)

View changed files

📝 libs/langgraph-api/src/cli/entrypoint.mts (+1 -1)
📝 libs/langgraph-api/src/storage/ops.mts (+2 -1)
📝 libs/langgraph-api/src/storage/persist.mts (+7 -3)

📄 Description

Due to .next() being called in a loop, we would never automatically persist during idle time, thus sometimes the thread may disappear. Also bumped the wait limit for exit async hook.


🔄 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/langgraphjs-api/pull/31 **Author:** [@dqbd](https://github.com/dqbd) **Created:** 3/19/2025 **Status:** ✅ Merged **Merged:** 3/20/2025 **Merged by:** [@dqbd](https://github.com/dqbd) **Base:** `main` ← **Head:** `dqbd/persist-fix` --- ### 📝 Commits (1) - [`48167e4`](https://github.com/langchain-ai/langgraphjs-api/commit/48167e44ec1dafc18c00b29cb3d3adbeaba54fcd) fix(api): make sure to persist after a while ### 📊 Changes **3 files changed** (+10 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `libs/langgraph-api/src/cli/entrypoint.mts` (+1 -1) 📝 `libs/langgraph-api/src/storage/ops.mts` (+2 -1) 📝 `libs/langgraph-api/src/storage/persist.mts` (+7 -3) </details> ### 📄 Description Due to `.next()` being called in a loop, we would never automatically persist during idle time, thus sometimes the thread may disappear. Also bumped the wait limit for exit async hook. --- <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-16 04:17:04 -05:00
yindo closed this issue 2026-02-16 04:17:04 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs-api#35