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
    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
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraphpregel_algoprepare_node_error_handler_task
    Functionā—Since v1.1

    prepare_node_error_handler_task

    Copy
    prepare_node_error_handler_task(
      failed_task: PregelExecutableTask,
      *,
      handler_node_name: str,
      failed_error: BaseException
    View source on GitHub
    ,
    checkpoint
    :
    Checkpoint
    ,
    pending_writes
    :
    list
    [
    PendingWrite
    ]
    ,
    processes
    :
    Mapping
    [
    str
    ,
    PregelNode
    ]
    ,
    channels
    :
    Mapping
    [
    str
    ,
    BaseChannel
    ]
    ,
    managed
    :
    ManagedValueMapping
    ,
    config
    :
    RunnableConfig
    ,
    step
    :
    int
    ,
    stop
    :
    int
    ,
    store
    :
    BaseStore
    |
    None
    =
    None
    ,
    checkpointer
    :
    BaseCheckpointSaver
    |
    None
    =
    None
    ,
    manager
    :
    None
    |
    ParentRunManager
    |
    AsyncParentRunManager
    =
    None
    ,
    cache_policy
    :
    CachePolicy
    |
    None
    =
    None
    ,
    retry_policy
    :
    Sequence
    [
    RetryPolicy
    ]
    =
    (
    )
    )
    ->
    PregelExecutableTask
    |
    None

    Prepare an immediate node-level error handler task for a failed task.