# LangGraph subgraph interrupt: why resume re-runs nodes, and how to stop it

By Agent Signal · Published 2026-10-27 · Updated 2026-11-28

> **Short answer:** When a subgraph pauses with interrupt() and you resume, LangGraph restarts the parent node that called the subgraph and the subgraph node that paused, so any side effect above those points runs again. That part is documented and happens on every version. Separately, langgraph 1.2.15 and earlier re-ran subgraph nodes that were already approved when parallel interrupts were answered one at a time; 1.2.16 fixed it. Upgrade to 1.2.16 or newer, move side effects into their own node, and key each one on thread_id plus the action and your business id.


You put the approval step in a subgraph. A person approves once, you resume with `Command(resume=...)`, and a ticket gets opened twice, or an email goes out again. This guide shows the two reasons that happens with subgraphs and a fix you can paste in, so one approval means one side effect. Everything below was run on **langgraph 1.2.15, 1.2.16 and 1.2.18 (Python 3.13.5), Oct 27, 2026**.

## Why it runs again

1. **The parent node restarts. This is by design.** When a node calls a subgraph and the subgraph hits `interrupt()`, the LangGraph docs say "the parent graph will resume execution from the beginning of the node where the subgraph was invoked." The subgraph also restarts the node that paused ([LangGraph docs: using interrupts with subgraphs](https://docs.langchain.com/oss/python/langgraph/interrupts#using-with-subgraphs-called-as-functions)). Anything above the subgraph call, such as creating a ticket, runs a second time. Every version we tested does this, including 1.2.18.
2. **Already-approved subgraph nodes ran again. This was a bug.** Picture a subgraph with two approvals that run in parallel, say a refund and an email, and a UI that answers them one at a time. In langgraph **1.2.15 and earlier**, each later resume re-ran the node you had already approved. Its saved answer carried it straight past `interrupt()`, so its side effect fired again, while the final state still looked right ([issue #9106](https://github.com/langchain-ai/langgraph/issues/9106)). The same cause made a finished `@task` re-run inside a nested `@entrypoint` ([issue #6792](https://github.com/langchain-ai/langgraph/issues/6792)). [PR #9315](https://github.com/langchain-ai/langgraph/pull/9315) fixed both, and it shipped in [langgraph 1.2.16](https://github.com/langchain-ai/langgraph/releases/tag/1.2.16). The LangGraph.js fix is [PR #3028](https://github.com/langchain-ai/langgraphjs/pull/3028), released in `@langchain/langgraph` 1.5.1.

## Reproduce it, then fix it

There is no LLM and no API key. The graphs, subgraphs, checkpointer and interrupt/resume logic are real LangGraph code. `effects` stands in for your ticket, refund and email APIs, and the `done` dict stands in for a database table with a UNIQUE key. Case A is a parent node that opens a ticket, then calls an approval subgraph. Case B is a subgraph added as a node, with two parallel approvals.

```python
# subgraph_twice.py   pip install langgraph==1.2.18   (no LLM, no API key)
import operator
from typing import Annotated
from typing_extensions import TypedDict
from langchain_core.runnables import RunnableConfig
from langgraph.checkpoint.memory import InMemorySaver
from langgraph.graph import START, StateGraph
from langgraph.types import Command, interrupt

effects = []    # stands in for your ticket, refund and email APIs
done = {}       # stands in for a table with a UNIQUE key column

def side_effect(name):
    effects.append(name)
    return name

def once(key, name):
    """Run side_effect(name) at most once per key."""
    if key not in done:
        done[key] = side_effect(name)
    return done[key]

class State(TypedDict, total=False):
    order_id: str
    log: Annotated[list[str], operator.add]

def run(graph, thread):
    """Start, then approve each pending interrupt one at a time, like a real UI."""
    config = {"configurable": {"thread_id": thread}}
    result = graph.invoke({"order_id": "42", "log": []}, config)
    while pending := result.get("__interrupt__"):
        result = graph.invoke(Command(resume={pending[0].id: True}), config)

def key(config, name, state):
    return f"{config['configurable']['thread_id']}:{name}:{state['order_id']}"

# Case A: a parent node calls a subgraph that pauses for approval.
def ask(state: State):
    interrupt("approve refund?")
    return {"log": ["approved"]}
approval = StateGraph(State).add_node("ask", ask).add_edge(START, "ask").compile()

def graph_a(mode):
    def ticket(state: State):
        side_effect("ticket")                          # no key: runs once, not re-run on resume
        return {"log": ["ticket"]}
    def handle(state: State, config: RunnableConfig):
        if mode == "naive":
            side_effect("ticket")                      # runs again on resume
        if mode == "keyed":
            once(key(config, "ticket", state), "ticket")
        approval.invoke({"order_id": state["order_id"]})   # pauses in here
        return {"log": ["handled"]}
    b = StateGraph(State).add_node("handle", handle)
    if mode == "own node":                             # ticket runs before handle
        b.add_node("ticket", ticket).add_edge(START, "ticket").add_edge("ticket", "handle")
    else:
        b.add_edge(START, "handle")
    return b.compile(checkpointer=InMemorySaver())

# Case B: a subgraph added as a node, with two approvals that run in parallel.
def graph_b(mode):
    def step(name):
        def node(state: State, config: RunnableConfig):
            interrupt(f"approve {name}?")
            if mode == "keyed":
                once(key(config, name, state), name)
            else:
                side_effect(name)                      # can run again on a later resume
            return {"log": [name]}
        return node
    child = (StateGraph(State)
             .add_node("refund", step("refund")).add_node("email", step("email"))
             .add_edge(START, "refund").add_edge(START, "email").compile())
    return (StateGraph(State).add_node("child", child).add_edge(START, "child")
            .compile(checkpointer=InMemorySaver()))

for label, make, mode in [("A naive", graph_a, "naive"), ("A own node", graph_a, "own node"),
                          ("A keyed", graph_a, "keyed"), ("B naive", graph_b, "naive"),
                          ("B keyed", graph_b, "keyed")]:
    effects.clear(); done.clear()
    run(make(mode), thread=label)
    print(f"{label:<11}: {sorted(effects)}")
```

Output on **langgraph 1.2.18** (1.2.16 is the same):

```
A naive    : ['ticket', 'ticket']
A own node : ['ticket']
A keyed    : ['ticket']
B naive    : ['email', 'refund']
B keyed    : ['email', 'refund']
```

On **langgraph 1.2.15** the `B naive` line has three side effects, not two: answering the second approval re-ran the node you approved first. Which one repeats depends on which interrupt comes back first, so you get `['email', 'email', 'refund']` or `['email', 'refund', 'refund']`. We ran each version 20 times: 1.2.15 showed three side effects in `B naive` in 20 of 20 runs, and 1.2.16 and 1.2.18 showed two in 20 of 20. Case A showed two tickets in 20 of 20 runs on every version. Swapping `InMemorySaver` for `SqliteSaver` (langgraph-checkpoint-sqlite 3.1.2) gave the same counts on 1.2.15 and 1.2.18. We also ran the nested `@task` repro from issue #6792: the task before the interrupt ran twice on 1.2.15 and once on 1.2.16 and 1.2.18.

## The fix in 3 steps

1. **Upgrade to langgraph 1.2.16 or newer** (LangGraph.js: `@langchain/langgraph` 1.5.1 or newer). That stops already-approved subgraph nodes and finished tasks from running again. It does not change case A.
2. **Give each side effect its own node.** Keep the node that calls the subgraph, and the subgraph node that calls `interrupt()`, free of writes. Do the write in a node that runs before the pause, as in `A own node`, or after the approval comes back. The docs recommend the same: "Separate side effects into separate nodes when possible." This covers resume. It does not cover a crash right after the write and before LangGraph saves the step, which step 3 does.
3. **Key every side effect on a stable value.** Use something that is the same on every resume, such as `thread_id` plus the action plus your business id (`thread-7:refund:order-42`). Send it as your payment or email provider's idempotency key, or insert it into a table with a UNIQUE constraint before you act and return the stored result if it's already there. The `done` dict above only works inside one process; use a real database in production. This step still matters after you upgrade, because case A re-runs on every version by design, and because a crash or retry can repeat a node too.

## FAQ

**Does upgrading to langgraph 1.2.16 fix it?**
Partly. It fixes already-approved subgraph nodes running again when parallel interrupts are answered one at a time. Code that runs before a subgraph call, or before `interrupt()` in the same node, still runs again on resume on every version, because LangGraph restarts the node.

**Why does my final state look right if a node ran twice?**
Because the checkpointer saves state, not what your code did to the outside world. On 1.2.15, case B ended with a correct `log` of two entries while three side effects had run. The extra ticket, charge or email had already happened.

**Is my subgraph called as a function, or added as a node?**
If a node function calls `subgraph.invoke(...)`, that is "called as a function", and the whole calling node restarts on resume (case A). If you passed the compiled subgraph to `add_node`, it is added as a node (case B). Side effects above `interrupt()` re-run in both.

**Does this affect LangGraph.js?**
The same subgraph re-run bug was fixed in LangGraph.js by [PR #3028](https://github.com/langchain-ai/langgraphjs/pull/3028), released in `@langchain/langgraph` 1.5.1. We did not run the JavaScript version ourselves.

## What we did not test

No real model, payment API, ticket system or production database. We used `InMemorySaver` and `SqliteSaver` in one process, not Postgres, a server deployment or a resume in a fresh process. We did not test subgraphs compiled with `checkpointer=True`, `Send`-based fan-out, or LangGraph.js.

## Get the template

- Free: [Multiple interrupts in one node](/templates/langgraph-multi-interrupt/), a tested LangGraph starter with two parallel nodes that interrupt in the same step and are resumed by `Interrupt.id`.
- Pro: [Idempotent approval: no double charges on resume](/templates/langgraph-idempotent-approval/), the idempotency-key pattern for LangGraph, in [Signal Pro](/pricing/) ($7/month or $69/year).
- Done for you: the [$79 Agent Approval-Flow Fix](/fix/). Send a minimal repro. You pay $79 only when our patch passes it.

## Check your own agent in 2 minutes

Want to see a repeated side effect happen, then stop? Run the free [2-minute crash test](https://tryagentsignal.com/crash-test/). It kills a LangGraph agent right after an approved charge, resumes it, and counts how many times the charge runs, so you can check your fix before your customers do.
