[KongchangAI]
Conceptinterrupt

interrupt()

An API in LangGraph used to implement human intervention. After it is called, the graph enters an interrupted state and waits for an external approval signal; on resumption it replays nodes from the most recent checkpoint, so preceding code may execute again.

Core Facts

Timeline (last 90 days)

Nov 16

LangGraph's interrupt() throws an internal signal in the current node; after the graph engine catches it, it writes the paused state to the checkpointer, and the process can exit normally.

Unverified50%
Nov 16

In LangGraph version 1.2.22, resuming a thread that has already ended with 'approved' using Command(resume='rejected') returns the old 'approved' result, with no error and exit code 0.

Unverified50%
Nov 6

The pragmatic combined approach is: use a message queue plus a drain node to achieve low-latency soft steering, and reserve interrupt() for high-risk nodes that truly require a hard pause.

Unverified50%
Oct 30

You should not set a pause before every node; pause only before steps that are hard to undo and would not reveal their own errors (such as initiating a refund, deleting records, or sending emails).

Unverified50%
Oct 30

The interrupt payload should contain the actual effect (action name, target record, amount, dry-run or diff), not the model's explanation of its own plan.

Unverified50%
Oct 21

LangGraph documentation explicitly prohibits wrapping interrupt() in a bare try/except, because the exception will be caught, the interrupt signal cannot be passed back to the graph, and the graph will never pause.

Unverified50%
Oct 21

LangGraph maintains a list of resume values for each task, matched strictly by index; the order of interrupt calls is critical, and an interrupt() cannot be conditionally skipped.

Unverified50%
Oct 19

The runtime has a built-in pure Python executor that follows the same interrupt() contract as LangGraph: when it encounters a tool requiring approval, it throws a pause, writes {"state", "next", "interrupt"} to the checkpointer, and returns an approval request.

Unverified50%
Oct 12

LangChain needs middleware to insert a human review step, whereas LangGraph can call interrupt() at any position in the graph.

Unverified50%
Oct 11

When resuming from a LangGraph interrupt(), the entire node is re-executed from the beginning; side effects that occur before the interruption must be idempotent or moved to after the interruption.

Verified65%

2 more timeline events

All Facts (12)

Verified

When resuming from a LangGraph interrupt(), the entire node is re-executed from the beginning; side effects that occur before the interruption must be idempotent or moved to after the interruption.

65%
Verified

LangGraph provides interrupt_before / interrupt_after hooks that allow inspection logic to be injected before and after specific nodes

65%
Unverified

LangGraph's interrupt() throws an internal signal in the current node; after the graph engine catches it, it writes the paused state to the checkpointer, and the process can exit normally.

50%
Unverified

In LangGraph version 1.2.22, resuming a thread that has already ended with 'approved' using Command(resume='rejected') returns the old 'approved' result, with no error and exit code 0.

50%
Unverified

The pragmatic combined approach is: use a message queue plus a drain node to achieve low-latency soft steering, and reserve interrupt() for high-risk nodes that truly require a hard pause.

50%
Unverified

The interrupt payload should contain the actual effect (action name, target record, amount, dry-run or diff), not the model's explanation of its own plan.

50%
Unverified

You should not set a pause before every node; pause only before steps that are hard to undo and would not reveal their own errors (such as initiating a refund, deleting records, or sending emails).

50%
Unverified

LangGraph documentation explicitly prohibits wrapping interrupt() in a bare try/except, because the exception will be caught, the interrupt signal cannot be passed back to the graph, and the graph will never pause.

50%
Unverified

LangGraph maintains a list of resume values for each task, matched strictly by index; the order of interrupt calls is critical, and an interrupt() cannot be conditionally skipped.

50%
Unverified

The runtime has a built-in pure Python executor that follows the same interrupt() contract as LangGraph: when it encounters a tool requiring approval, it throws a pause, writes {"state", "next", "interrupt"} to the checkpointer, and returns an approval request.

50%
Unverified

LangChain needs middleware to insert a human review step, whereas LangGraph can call interrupt() at any position in the graph.

50%
Unverified

In LangGraph, the human's response becomes the return value of interrupt().

50%

Source Articles