mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-13 13:17:52 +02:00
Fix stream_mode=messages/custom buffering for sync calls with single node
This commit is contained in:
@@ -49,8 +49,8 @@ class PregelRunner:
|
||||
tasks = tuple(tasks)
|
||||
# give control back to the caller
|
||||
yield
|
||||
# fast path if single task with no timeout
|
||||
if len(tasks) == 1 and timeout is None:
|
||||
# fast path if single task with no timeout and no waiter
|
||||
if len(tasks) == 1 and timeout is None and get_waiter is None:
|
||||
t = tasks[0]
|
||||
try:
|
||||
run_with_retry(t, retry_policy)
|
||||
|
||||
Reference in New Issue
Block a user