From 1e751a22566e30638221f3865eeb3de5ea685068 Mon Sep 17 00:00:00 2001 From: Tat Dat Duong Date: Fri, 7 Mar 2025 19:23:29 +0100 Subject: [PATCH] Fix typo --- libs/langgraph/langgraph/pregel/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/langgraph/langgraph/pregel/__init__.py b/libs/langgraph/langgraph/pregel/__init__.py index e84c0b208..5b37e80fd 100644 --- a/libs/langgraph/langgraph/pregel/__init__.py +++ b/libs/langgraph/langgraph/pregel/__init__.py @@ -1485,7 +1485,7 @@ class Pregel(PregelProtocol): ), ) - for _, task in tasks: + for task_id, task in tasks: if push_writes := [w for w in task.writes if w[0] == PUSH]: checkpointer.put_writes(next_config, push_writes, task_id) @@ -1818,7 +1818,7 @@ class Pregel(PregelProtocol): ), ) - for _, task in tasks: + for task_id, task in tasks: # save push writes if push_writes := [w for w in task.writes if w[0] == PUSH]: await checkpointer.aput_writes(next_config, push_writes, task_id)