mirror of
https://github.com/langchain-ai/langgraphjs-api.git
synced 2026-07-21 00:35:21 -04:00
[PR #31] [MERGED] fix(api): make sure to persist after a while #35
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
main← Head:dqbd/persist-fix📝 Commits (1)
48167e4fix(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.