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 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 CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraphpregel_runnerPregelRunner
    Class●Since v0.6

    PregelRunner

    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.

    Copy
    PregelRunner(
      self,
      *,
      submit: weakref.ref[Submit],
      put_writes: weakref.ref[Callable[[str, Sequence[tuple[str, Any]]], None]],
      use_astream: bool = False,
      node_finished: Callable[[str], None] | None = None
    )

    Constructors

    constructor
    __init__
    NameType
    submitweakref.ref[Submit]
    put_writesweakref.ref[Callable[[str, Sequence[tuple[str, Any]]], None]]
    use_astreambool
    node_finishedCallable[[str], None] | None

    Attributes

    attribute
    submit: submit
    attribute
    put_writes: put_writes
    attribute
    use_astream: use_astream
    attribute
    node_finished: node_finished

    Methods

    method
    tick
    method
    atick
    method
    commit
    View source on GitHub