docs: document LSD_CHECKPOINT_DELETE env var#3682
Open
Connor Braa (cwlbraa) wants to merge 5 commits intomainfrom
Open
docs: document LSD_CHECKPOINT_DELETE env var#3682Connor Braa (cwlbraa) wants to merge 5 commits intomainfrom
Connor Braa (cwlbraa) wants to merge 5 commits intomainfrom
Conversation
Adds agent server env var reference for the deferred checkpoint deletion feature flag, covering all configurable JSON fields (enabled, enabledWorkerOnly, pollIntervalMs, batchSize, batchSleepMs) shipped in langgraph-api#3111. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
|
Thanks for opening a docs PR, Connor Braa (@cwlbraa)! When it's ready for review, please add the relevant reviewers:
|
The feature shipped in 3111 but the queue table migration did not apply until the renumber fix in 3269, which also bumped the version to 0.7.103. Direct users to that version to avoid hitting the broken migration. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Describe the behavior in terms of enqueue/drain instead of the internal checkpointer-wrapper implementation detail. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
MongoDB checkpointer's DeleteCheckpoints explicitly returns unsupported, so the deferred-delete worker only works against the postgres backend. Flag it will become the default later so operators can plan ahead. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
|
Mintlify preview branch generated: Site preview: https://langchain-5e9cc07a-preview-cwlbra-1776895976-34c974a.mintlify.app Changed documentation pages (preview deep links): |
William FH (hinthornw)
approved these changes
Apr 22, 2026
|
|
||
| Accepted fields: | ||
|
|
||
| - `enabled` (boolean, default `false`): When `true`, thread delete and prune operations enqueue checkpoints into `checkpoint_delete_queue` and return immediately, and the background worker drains the queue. |
Contributor
There was a problem hiding this comment.
would it safe to flip back from true to false? if not maybe worth documenting it to avoid mistakes.
Quanzheng Long (longquanzheng)
approved these changes
Apr 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
LSD_CHECKPOINT_DELETE, the feature flag that turns on deferred/background checkpoint deletionenabled,enabledWorkerOnly,pollIntervalMs,batchSize,batchSleepMs) with defaults and an exampleTest plan
make lint_prose FILES="src/langsmith/env-var.mdx"passes clean🤖 Generated with Claude Code