Skip to content

Commit eb3059c

Browse files
committed
Ensure to call putCheckpoint for nested graphs
1 parent 4c15d8e commit eb3059c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/langgraph/src/pregel/loop.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -843,8 +843,8 @@ export class PregelLoop {
843843
// or a nested graph with error or interrupt
844844
error !== undefined ||
845845
// or a nested graph with checkpointer: true
846-
this.checkpointNamespace.every(
847-
(part) => !part.includes(CHECKPOINT_NAMESPACE_END)
846+
this.checkpointNamespace.some((part) =>
847+
part.includes(CHECKPOINT_NAMESPACE_END)
848848
))
849849
) {
850850
this._putCheckpoint(this.checkpointMetadata);

0 commit comments

Comments
 (0)