interrupt(): Approval Gates
Pause a LangGraph run for human review with interrupt(), resume it with Command, and build one gate that supports approve, edit and reject without double-charging on re-run.
Last updated
After this section you can
- Pause a run for human review with interrupt() and resume it with Command
- Build one gate that supports approve, edit and reject
- Keep side effects out of the re-run window above the interrupt
interrupt(): Approval Gates
Any node can stop the graph, hand a payload to a human, and wait — across a redeploy if it has to. It is one function call, and it only works because the checkpointer is already there.
interrupt() is not a blocking prompt. It writes a checkpoint, throws control back to whoever called invoke, and lets your process exit. Resuming is a fresh invoke on the same thread_id carrying a Command — which is why the checkpointer is what makes the pause useful, not what makes it happen.