From 86b65beb8f002d2c24240c1933a9a0a02b2b888a Mon Sep 17 00:00:00 2001 From: William FH <13333726+hinthornw@users.noreply.github.com> Date: Tue, 3 Feb 2026 10:52:33 -0800 Subject: [PATCH] chore: Update ThreadTTLConfig (#6730) Sync with underlying implementation. --- libs/cli/langgraph_cli/schemas.py | 2 ++ libs/cli/schemas/schema.json | 11 +++++++++++ libs/cli/schemas/schema.v0.json | 11 +++++++++++ 3 files changed, 24 insertions(+) diff --git a/libs/cli/langgraph_cli/schemas.py b/libs/cli/langgraph_cli/schemas.py index b559e6a0d..fb517becd 100644 --- a/libs/cli/langgraph_cli/schemas.py +++ b/libs/cli/langgraph_cli/schemas.py @@ -179,6 +179,8 @@ class CheckpointerConfig(TypedDict, total=False): This configuration requires server version 0.5 or later to take effect. """ + sweep_limit: int | None + """Maximum number of threads to process per sweep iteration. Defaults to 1000.""" class SecurityConfig(TypedDict, total=False): diff --git a/libs/cli/schemas/schema.json b/libs/cli/schemas/schema.json index d79e47ec8..e4f31bb4d 100644 --- a/libs/cli/schemas/schema.json +++ b/libs/cli/schemas/schema.json @@ -554,6 +554,17 @@ ], "description": "Optional. Defines the serde configuration.\n\nIf provided, the checkpointer will apply serde settings according to the configuration.\nIf omitted, no serde behavior is configured.\n\nThis configuration requires server version 0.5 or later to take effect.\n" }, + "sweep_limit": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "description": "Maximum number of threads to process per sweep iteration. Defaults to 1000." + }, "ttl": { "anyOf": [ { diff --git a/libs/cli/schemas/schema.v0.json b/libs/cli/schemas/schema.v0.json index d79e47ec8..e4f31bb4d 100644 --- a/libs/cli/schemas/schema.v0.json +++ b/libs/cli/schemas/schema.v0.json @@ -554,6 +554,17 @@ ], "description": "Optional. Defines the serde configuration.\n\nIf provided, the checkpointer will apply serde settings according to the configuration.\nIf omitted, no serde behavior is configured.\n\nThis configuration requires server version 0.5 or later to take effect.\n" }, + "sweep_limit": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "description": "Maximum number of threads to process per sweep iteration. Defaults to 1000." + }, "ttl": { "anyOf": [ {