mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-09 11:17:53 +02:00
Passthrough checkpoint in config even when current sub-graph didn't choose to use it
This commit is contained in:
@@ -407,7 +407,12 @@ def prepare_next_tasks(
|
||||
PregelTaskWrites(name, writes, triggers),
|
||||
config,
|
||||
),
|
||||
CONFIG_KEY_CHECKPOINTER: checkpointer,
|
||||
CONFIG_KEY_CHECKPOINTER: (
|
||||
checkpointer
|
||||
or config["configurable"].get(
|
||||
CONFIG_KEY_CHECKPOINTER
|
||||
)
|
||||
),
|
||||
CONFIG_KEY_RESUMING: is_resuming,
|
||||
"checkpoint_id": checkpoint["id"],
|
||||
"checkpoint_ns": checkpoint_ns,
|
||||
|
||||
Reference in New Issue
Block a user