LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph.checkpoint.postgresbaseSELECT_PENDING_SENDS_SQL
    Attribute●Since v2.0

    SELECT_PENDING_SENDS_SQL

    Copy
    SELECT_PENDING_SENDS_SQL = f"\nselect\n    checkpoint_id,\n    array_agg(
      array[type::bytea, blob] order by task_path,
      task_id,
      idx) as sends\nfrom checkpoint_writes\nwhere thread_id = %s\n    and checkpoint_id = any(%s
    )\n    and channel = '{TASKS}'\ngroup by checkpoint_id\n"
    View source on GitHub