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/langgraphindexGraphDrained
Class●Since v1.5

GraphDrained

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.

Copy
class GraphDrained

Bases

GraphBubbleUp

Used in Docs

  • Fault tolerance

Constructors

constructor
constructor→ GraphDrained

Properties

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

Methods

method
captureStackTrace
method
prepareStackTrace

Inherited fromGraphBubbleUp

Properties

PcausePlc_error_code: stringPmessagePname: stringPstackPstackTraceLimitPis_bubble_up: boolean

Methods

McaptureStackTraceMprepareStackTrace

Inherited fromBaseLangGraphError

Properties

PcausePlc_error_code: stringPmessagePname: stringPstackPstackTraceLimit

Methods

McaptureStackTraceMprepareStackTrace
View source on GitHub