Skip to content

Cancelled error with langgraph runs #1601

Answered by nfcampos
kedarsp-informa asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @kedarsp-informa you shouldn't use asyncio.run in add_node we have native support for async functions in nodes. Using asyncio.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

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@nfcampos
Comment options

@tommasodelorenzo
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by nfcampos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants