Cancelled error with langgraph runs #1601
-
I have an inconsistent issue as CancelledError().
and
The below is the error trace: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I get the same error when execution time reaches about 60s |
Beta Was this translation helpful? Give feedback.
-
Hi @kedarsp-informa you shouldn't use |
Beta Was this translation helpful? Give feedback.
Hi @kedarsp-informa you shouldn't use
asyncio.run
inadd_node
we have native support for async functions in nodes. Usingasyncio.run
would create a new event loop for each node, which is very inefficient and can cause issues such as cancellation not propagating from graph to node etc