Skip to content

Is a LangGraph compiled graph thread-safe / advised for concurrent use? #1211

Closed Answered by nfcampos
JoshuaC215 asked this question in Q&A
Discussion options

You must be logged in to vote

It is entirely safe to share a graph between executions, whether they happen concurrently or not, whether in same thread or not. No state is ever stored on the graph instance, and the graph instance isn't ever mutated in any way during any execution of the graph

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@davidrosenstark
Comment options

@sayansahaacc
Comment options

@davidrosenstark
Comment options

@sayansahaacc
Comment options

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