Skip to content

Production compiles the graph without a checkpointer when the Postgres pool fails #97

Description

@M1ndSmith

_get_connection_pool() catches a Postgres failure in production, logs continuing_without_connection_pool, and returns None. create_graph() then sets checkpointer=None and compiles.

/messages, clear_chat_history, and HITL Command(resume=...) read AsyncPostgresSaver (checkpoint tables, thread_id). mem0 search/add write user facts to pgvector. Same database, two stores.

Expected: the process refuses to serve, or /health returns 503, if the checkpointer cannot be created.

I have not runtime-reproduced this. The branch is in app/core/langgraph/graph.py (_get_connection_pool, create_graph).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions