Skip to content
Discussion options

You must be logged in to vote

Hi @BoyPit, thanks for writing in. The LangGraph API actually ignores any custom checkpointer when you’re running on LangGraph Server (Docker or Cloud). I'd recommend dropping the checkpointer=MemorySaver() argument and just using the built-in postgres checkpointer that ships with the platform (by compiling with no args graph = workflow.compile())

If you want to point to another custom Postgres instance instead of the default, simply set the POSTGRES_URI environment variable before you start the server:

export POSTGRES_URI="postgresql://user:pass@postgres:5432/mydb"

More details here: https://langchain-ai.github.io/langgraph/cloud/reference/env_var/?h=environ#postgres_uri_custom

With tha…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@danni-boii
Comment options

@BoyPit
Comment options

Answer selected by hinthornw
Comment options

You must be logged in to vote
0 replies
Comment options

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