checkpointer
LangGraph's durable execution mechanism, which saves a state snapshot after each execution step and supports resuming from the most recent checkpoint after an interruption. It is the basis for human approval that spans extended periods.
Core Facts
Timeline (last 90 days)
LangGraph's interrupt() throws an internal signal in the current node; after the graph engine catches it, it writes the paused state to the checkpointer, and the process can exit normally.
In LangGraph, the checkpointer is responsible for persisting a state snapshot after each node executes, and together with thread_id it enables session recovery, resuming from checkpoints and multi-user isolation.
In LangGraph, a running graph may be reading and writing the same state, and an external thread calling update_state() to modify the state may cause race conditions, such as external messages being overwritten or inconsistency between the checkpoint and the in-memory state.
LangGraph's checkpointer is a component that persists the graph execution state by thread_id, where each thread corresponds to a conversation or task flow, and the complete state snapshot after each node executes is written to a storage backend (in-memory, SQLite, Redis, Postgres, etc.).
In multi-tenant scenarios, isolation of the LangGraph checkpointer is usually achieved by encoding the tenant ID into the thread_id or by using separate namespaces.
In LangGraph, thread_id identifies an independent execution thread, and the checkpointer stores and retrieves state snapshots by thread_id; if the thread_id is not stable, the checkpoint cannot be found on resume, and the approval flow breaks.
Compiling the graph with a checkpointer and passing a stable thread_id is a necessary condition for persisting the waiting state of human approval.
Production environments should use a persistent checkpointer instead of InMemorySaver, together with an appropriate data retention policy.
LangGraph's checkpointer persists a snapshot of the current state after each node execution, attaching a thread_id as the session identifier.
The checkpointer only covers a single thread, and facts that should survive across sessions should be placed in the store.
3 more timeline events
All Facts (14)
LangGraph supports persisting a state snapshot of each step of graph execution through its built-in Checkpointer mechanism, enabling checkpoint-resume capability.
90%UnverifiedLangGraph's checkpointer persists a snapshot of the current state after each node execution, attaching a thread_id as the session identifier.
60%UnverifiedLangGraph's interrupt() throws an internal signal in the current node; after the graph engine catches it, it writes the paused state to the checkpointer, and the process can exit normally.
50%UnverifiedIn LangGraph, the checkpointer is responsible for persisting a state snapshot after each node executes, and together with thread_id it enables session recovery, resuming from checkpoints and multi-user isolation.
50%UnverifiedIn LangGraph, a running graph may be reading and writing the same state, and an external thread calling update_state() to modify the state may cause race conditions, such as external messages being overwritten or inconsistency between the checkpoint and the in-memory state.
50%UnverifiedIn multi-tenant scenarios, isolation of the LangGraph checkpointer is usually achieved by encoding the tenant ID into the thread_id or by using separate namespaces.
50%UnverifiedLangGraph's checkpointer is a component that persists the graph execution state by thread_id, where each thread corresponds to a conversation or task flow, and the complete state snapshot after each node executes is written to a storage backend (in-memory, SQLite, Redis, Postgres, etc.).
50%UnverifiedCompiling the graph with a checkpointer and passing a stable thread_id is a necessary condition for persisting the waiting state of human approval.
50%UnverifiedIn LangGraph, thread_id identifies an independent execution thread, and the checkpointer stores and retrieves state snapshots by thread_id; if the thread_id is not stable, the checkpoint cannot be found on resume, and the approval flow breaks.
50%UnverifiedProduction environments should use a persistent checkpointer instead of InMemorySaver, together with an appropriate data retention policy.
50%UnverifiedThe checkpointer only covers a single thread, and facts that should survive across sessions should be placed in the store.
50%UnverifiedWhen using create_agent, checkpointing capability can be obtained directly just by passing the checkpointer parameter, without writing a graph by hand.
50%UnverifiedLangGraph saves state snapshots between each node via a Checkpointer (such as SQLite Saver) and distinguishes different sessions using thread IDs.
50%UnverifiedIn LangGraph, in-session state persistence is handled by the checkpointer, keyed by thread_id, allowing a run to be paused and resumed with the state intact.
50%