LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Graphs
    • Functional API
    • Pregel
    • Checkpointing
    • Storage
    • Caching
    • Types
    • Runtime
    • Config
    • Errors
    • Constants
    • Channels
    • Agents
    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

    OverviewGraphsFunctional APIPregelCheckpointingStorageCachingTypesRuntimeConfigErrorsConstantsChannelsAgents
    LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraphpregel_runnerPregelRunner
    Class●Since v0.6

    PregelRunner

    Copy
    PregelRunner(
      self,
      *,
      submit: weakref.ref[Submit],
      put_writes: weakref.

    Constructors

    Attributes

    Methods

    View source on GitHub
    ref
    [
    Callable
    [
    [
    str
    ,
    Sequence
    [
    tuple
    [
    str
    ,
    Any
    ]
    ]
    ]
    ,
    None
    ]
    ]
    ,
    use_astream
    :
    bool
    =
    False
    ,
    node_finished
    :
    Callable
    [
    [
    str
    ]
    ,
    None
    ]
    |
    None
    =
    None
    ,
    node_error_handler_map
    :
    Mapping
    [
    str
    ,
    str
    ]
    |
    None
    =
    None
    ,
    schedule_error_handler
    :
    Callable
    [
    [
    PregelExecutableTask
    ,
    BaseException
    ]
    ,
    PregelExecutableTask
    |
    None
    ]
    |
    None
    =
    None
    ,
    aschedule_error_handler
    :
    Callable
    [
    [
    PregelExecutableTask
    ,
    BaseException
    ]
    ,
    Awaitable
    [
    PregelExecutableTask
    |
    None
    ]
    ]
    |
    None
    =
    None
    )
    constructor
    __init__
    NameType
    submitweakref.ref[Submit]
    put_writesweakref.ref[Callable[[str, Sequence[tuple[str, Any]]], None]]
    use_astreambool
    node_finishedCallable[[str], None] | None
    node_error_handler_mapMapping[str, str] | None
    schedule_error_handlerCallable[[PregelExecutableTask, BaseException], PregelExecutableTask | None] | None
    aschedule_error_handlerCallable[[PregelExecutableTask, BaseException], Awaitable[PregelExecutableTask | None]] | None
    attribute
    submit: submit
    attribute
    put_writes: put_writes
    attribute
    use_astream: use_astream
    attribute
    node_finished: node_finished
    attribute
    node_error_handler_map
    attribute
    error_handler_nodes
    attribute
    schedule_error_handler: schedule_error_handler
    attribute
    aschedule_error_handler: aschedule_error_handler
    method
    tick
    method
    atick
    method
    commit

    Responsible for executing a set of Pregel tasks concurrently, committing their writes, yielding control to caller when there is output to emit, and interrupting other tasks if appropriate.