LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangGraph
  • Web
  • Channels
  • Pregel
  • Prebuilt
  • Remote
  • Stream
LangGraph SDK
  • Client
  • Auth
  • React
  • Logging
  • React Ui
  • Server
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
LangGraph Checkpoint Redis
  • Shallow
  • Store
LangGraph Checkpoint SQLite
LangGraph Checkpoint Validation
  • Cli
LangGraph API
LangGraph CLI
LangGraph CUA
  • Utils
LangGraph Supervisor
LangGraph Swarm
โŒ˜I

Chat LangChain

What can I help with?

Enter to sendยทShift+Enter new line

Menu

LangGraph
WebChannelsPregelPrebuiltRemoteStream
LangGraph SDK
ClientAuthReactLoggingReact UiServer
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
LangGraph Checkpoint Redis
ShallowStore
LangGraph Checkpoint SQLite
LangGraph Checkpoint Validation
Cli
LangGraph API
LangGraph CLI
LangGraph CUA
Utils
LangGraph Supervisor
LangGraph Swarm
Language
Theme
JavaScript@langchain/langgraphwebGraphDrained
Classโ—Since v1.5

GraphDrained

Copy
class GraphDrained

Bases

GraphBubbleUp

Used in Docs

  • Fault tolerance

Constructors

Properties

Methods

Inherited fromGraphBubbleUp

Properties

PcausePlc_error_code: stringPmessagePname: stringPstack
View source on GitHub
PstackTraceLimit
Pis_bubble_up: boolean

Methods

McaptureStackTraceMprepareStackTrace

Inherited fromBaseLangGraphError

Properties

PcausePlc_error_code: stringPmessagePname: stringPstackPstackTraceLimit

Methods

McaptureStackTraceMprepareStackTrace
constructor
constructorโ†’ GraphDrained
property
cause: unknown
property
lc_error_code: string
property
message: string
property
name: string
property
reason: string
property
stack: string
property
stackTraceLimit: number
property
is_bubble_up: boolean
property
unminifiable_name: string
method
captureStackTrace
method
prepareStackTrace

Raised when a graph run exits early due to a drain request.

This indicates the graph stopped cooperatively at a superstep boundary because RunControl#requestDrain was called (e.g., in response to SIGTERM). The checkpoint is saved and the run can be resumed later.