You fan out three @task calls from an @entrypoint. Each one calls interrupt(). You want to answer all three in one Command(resume={id: value, ...}). But invoke and get_state().interrupts show one interrupt, and a scalar resume is refused because several are pending. This guide shows where the other ids are, reproduces the behaviour, and gives three app-side workarounds that held 30 of 30 runs without changing the library.
Everything below ran on langgraph 1.2.24 with langgraph-checkpoint 4.3.2, Python 3.13.5, Linux, Nov 30, 2026. langgraph 1.2.24 was still the latest on PyPI (uploaded 2026-11-20T01:10:12Z, Nov 20, 2026 UTC). We used InMemorySaver, no network and no model. Each run used a fresh graph, saver and thread id. Each row is 30 runs, in one pass. The reporter was on langgraph 1.2.12.
Who this hits
You are affected if all of these are true:
- Your app uses the Functional API (
@entrypoint+@task). - It starts several
@taskcalls in parallel and then collects their results. - Each of those tasks calls
interrupt().
The public state, the __interrupt__ value from invoke and the get_state().interrupts list, shows one interrupt. A scalar Command(resume=...) is refused because several are pending. So you cannot build Command(resume={id: value}) from the public state alone.
If you fan out with a StateGraph and Send instead, every id is shown (30 of 30 runs in our control).
The issue
This is langchain-ai/langgraph#9075, "Functional API: parallel @task interrupts are pending but invoke/get_state surface only one". It was opened Sep 25, 2026 (5:00 AM MT) and was still open on Nov 30, 2026. Its only label is external. There is no maintainer reply.
The reporter describes it like this: parallel @task calls that each call interrupt() leave several interrupt writes on the checkpointer, but invoke and get_state().interrupts surface only one. A scalar Command(resume=...) then fails with "When there are multiple pending interrupts, you must specify the interrupt id when resuming." The reporter notes that the same fan-out with Send on a StateGraph surfaces all of them, and expects the Functional API to match.
The reproduction in the issue is short. A @task called ask(q) returns interrupt({"q": q}). The entrypoint starts ask(i) for i in range(3) and collects the results. Then it prints __interrupt__ and get_state().interrupts (one each) and tries Command(resume="x"), which raises the error above.
The mechanism, as VivekVRobo traced it
On Sep 25, 2026, VivekVRobo commented on the issue with a trace of the code path. In short: Functional @task calls are prepared in prepare_push_task_functional() with an in-progress task path that is marked so child interrupts are not returned directly ("responsibility lies with the parent"). At the same time, the resume path can already see that several interrupt writes are pending, and it correctly rejects a scalar resume. VivekVRobo placed the mismatch in how those child interrupt writes are surfaced at the parent Functional API boundary, not in interrupt() itself.
The 1.2.24 source has the matching comment in prepare_push_task_functional (langgraph/pregel/_algo.py):
# we append True to the task path to indicate that a call is being
# made, so we should not return interrupts from this task (responsibility lies with the parent)
in_progress_task_path = (*task_path[:3], True)
Status of a fix
VivekVRobo asked a maintainer to assign the issue to them. The issue author replied that they would not open a competing PR if that assignment happens. On Oct 8, 2026, VivekVRobo said a scoped fix is prepared on their fork, limited to Functional API interrupt aggregation. They have not opened a pull request, because the contribution guide requires maintainer approval and assignment first.
So there is no official fix PR, open or merged. A fork branch is not an official fix. Maintainers have not said what the intended contract is.
Why it happens
The public state shows the parent-facing interrupt list. In this path that list is incomplete. The checkpointer already has a pending __interrupt__ write for each @task.
Our suite measured this. After the first invoke, invoke and get_state() each showed 1 interrupt, and the checkpointer's pending __interrupt__ writes held all 3 (the values for q = 0, 1 and 2). That held in 30 of 30 runs. VivekVRobo's note explains the mechanism. Our numbers confirm the mismatch.
Reproduce it
This is the same shape as the issue: three parallel @task interrupts, then a scalar resume.
from langgraph.checkpoint.memory import InMemorySaver
from langgraph.func import entrypoint, task
from langgraph.types import Command, interrupt
saver = InMemorySaver()
@task
def ask(q: int):
return interrupt({"q": q})
@entrypoint(checkpointer=saver)
def workflow(n: int):
futs = [ask(i) for i in range(n)]
return [f.result() for f in futs]
config = {"configurable": {"thread_id": "t1"}}
out = workflow.invoke(3, config)
print(len(out["__interrupt__"])) # surfaced by invoke
print(len(workflow.get_state(config).interrupts)) # surfaced by get_state
workflow.invoke(Command(resume="x"), config)
Output on langgraph 1.2.24 (the same in 30 of 30 runs):
1
1
RuntimeError: When there are multiple pending interrupts, you must specify the interrupt id when resuming. Docs: https://docs.langchain.com/oss/python/langgraph/interrupts#handling-multiple-interrupts.
One id is surfaced, but the resume path knows there are more.
Results
30 runs per row, one pass, Nov 30, 2026. Each cell is the number of runs, out of 30, with the outcome named in the last column.
| Scenario | Result | What the count means |
|---|---|---|
Baseline: Functional API, three parallel @task interrupts |
30/30 | invoke and get_state().interrupts each surfaced 1 interrupt; the checkpointer's pending __interrupt__ writes held all 3 |
Baseline: scalar Command(resume="x") |
30/30 | Refused with RuntimeError: When there are multiple pending interrupts, you must specify the interrupt id when resuming. get_state() still showed 1 |
Control: the same fan-out as StateGraph + Send |
30/30 | All 3 surfaced on invoke and on get_state().interrupts |
| Workaround 1: recover ids from the checkpointer | 30/30 | Resumed with a map of every pending id; the workflow returned ['ans-0', 'ans-1', 'ans-2'] with no interrupts left |
Workaround 2: StateGraph + Send, resume from get_state() |
30/30 | A map of the 3 ids from get_state().interrupts finished the run: answers ['ans-0', 'ans-1', 'ans-2'], none left |
Workaround 3: serialize the @task calls |
30/30 | One interrupt at a time; three scalar resumes returned ['a0', 'a1', 'a2'] |
| Trap: resume map built from the single surfaced id | 30/30 | 30/30 = the run did not finish (finished=False); get_state() still showed 1, and the checkpointer still had 3 pending interrupt writes |
That is 7 rows of 30 runs, 210 runs in total.
The trap row is 30/30 because the incomplete resume failed to finish every time, not because it worked.
The fix: resume every pending interrupt in your app (no library change)
These are patterns we tested in our suite. None of them changes the library.
1. Recommended if you stay on the Functional API: recover the ids from the checkpointer
Every pending interrupt is in the checkpointer's pending writes on the __interrupt__ channel. Read them, dedupe by interrupt id (the parent write can repeat the first child's interrupt), and resume with a complete map:
pending_writes is an internal checkpointer detail, not part of the public get_state() / invoke API; we tested it only on InMemorySaver.
def all_pending_interrupts(saver, config) -> list:
"""Every pending Interrupt from the checkpointer's __interrupt__ writes."""
tup = saver.get_tuple(config)
seen = {}
for _task_id, channel, value in tup.pending_writes or []:
if channel != "__interrupt__":
continue
for iv in value or []:
seen[iv.id] = iv
return list(seen.values())
config = {"configurable": {"thread_id": "t-recover"}} # a fresh thread
workflow.invoke(3, config)
pending = all_pending_interrupts(saver, config) # 3 interrupts, not 1
resume = {iv.id: f"ans-{iv.value['q']}" for iv in pending}
out = workflow.invoke(Command(resume=resume), config)
print(out) # ['ans-0', 'ans-1', 'ans-2']
saver must be the same checkpointer you passed to @entrypoint. In 30 of 30 runs the workflow returned ['ans-0', 'ans-1', 'ans-2'] and no interrupts were left. We tested this on InMemorySaver only.
2. Move the fan-out to StateGraph + Send
With a StateGraph, the same fan-out surfaces all 3 ids on invoke and on get_state().interrupts. So you can build the resume map from the public state:
import operator
from typing import Annotated, TypedDict
from langgraph.checkpoint.memory import InMemorySaver
from langgraph.graph import END, START, StateGraph
from langgraph.types import Command, Send, interrupt
class S(TypedDict):
n: int
answers: Annotated[list, operator.add]
def fanout(state: S):
return Command(goto=[Send("ask", {"q": i}) for i in range(state["n"])])
def ask(state: dict):
return {"answers": [interrupt({"q": state["q"]})]}
b = StateGraph(S)
b.add_node("fanout", fanout)
b.add_node("ask", ask)
b.add_edge(START, "fanout")
b.add_edge("ask", END)
app = b.compile(checkpointer=InMemorySaver())
config = {"configurable": {"thread_id": "t2"}}
app.invoke({"n": 3, "answers": []}, config)
ints = app.get_state(config).interrupts # all 3
out = app.invoke(Command(resume={iv.id: f"ans-{iv.value['q']}" for iv in ints}), config)
print(sorted(out["answers"])) # ['ans-0', 'ans-1', 'ans-2']
That finished the run with no interrupts left in 30 of 30 runs.
3. Serialize the @task calls
If the questions do not need to be asked at the same time, wait for each task inside the loop. Only one interrupt is pending at a time, so a scalar Command(resume=...) is valid each round:
saver = InMemorySaver()
@entrypoint(checkpointer=saver)
def workflow(n: int):
return [ask(i).result() for i in range(n)]
config = {"configurable": {"thread_id": "t3"}}
out = workflow.invoke(3, config)
for answer in ["a0", "a1", "a2"]:
out = workflow.invoke(Command(resume=answer), config)
print(out) # ['a0', 'a1', 'a2']
In 30 of 30 runs each round showed exactly 1 interrupt, and the three scalar resumes returned ['a0', 'a1', 'a2']. The trade-off is that the user sees one question at a time.
Stuck on a LangGraph approval or resume flow? Send a minimal repro; you pay $79 only when our patch passes it.
The trap: a resume map from the one surfaced id
- A map built from
__interrupt__orget_state().interruptsholds one id. The resume is accepted, but the run does not finish (finished=Falsein 30 of 30 runs).get_state()still shows 1 interrupt, and the checkpointer still has 3 pending interrupt writes. - A scalar
Command(resume=...)is refused with the must-specify-id error in 30 of 30 runs (the baseline row).
What we didn't test
- A checkpointer other than
InMemorySaver(Postgres, sqlite, and so on). - The async Functional API (
ainvoke, an async@entrypoint). - LangGraph Cloud or other durable deployments, or more than three parallel tasks.
- Nested entrypoints,
RemoteGraph, orinterrupt()inside a StateGraph node that itself uses the Functional API. - A real model or provider.
- langgraph versions other than 1.2.24. The reporter was on 1.2.12; we did not re-run 1.2.12.
- Recovering the ids after a partial, one-id resume and then finishing. The trap row shows that a one-id resume leaves writes pending, but we did not measure a follow-up recovery as a complete fix in that state.
- Patching the library itself.
FAQ
What happens when several @task calls interrupt in parallel in the LangGraph Functional API?
All of the interrupts are pending, but only one is shown. With an @entrypoint that starts three parallel @task calls that each call interrupt(), invoke and get_state().interrupts each surfaced 1 interrupt, while the checkpointer held a pending __interrupt__ write for all 3, in 30 of 30 runs on langgraph 1.2.24. A scalar Command(resume='x') was refused with: When there are multiple pending interrupts, you must specify the interrupt id when resuming. So the caller cannot build the full Command(resume={id: value}) map from the public state.
Have the LangGraph maintainers decided on this, and is there an official fix PR?
No. Issue #9075 was opened Sep 25, 2026 and was still open on Nov 30, 2026, with the external label and no maintainer reply. There is no official fix PR. A contributor, VivekVRobo, traced the mechanism, asked to be assigned, and later said a scoped fix is prepared on their fork. They have not opened a pull request because the contribution guide requires maintainer assignment first. The issue author said they would not open a competing PR if that assignment happens.
Does this still happen in the latest langgraph?
Yes. langgraph 1.2.24, uploaded to PyPI on Nov 20, 2026 UTC, was still the latest on Nov 30, 2026. With langgraph-checkpoint 4.3.2 and Python 3.13.5, invoke and get_state showed 1 interrupt while 3 were pending in 30 of 30 runs. The reporter was on langgraph 1.2.12. We did not re-run 1.2.12.
How do I resume all of the hidden interrupts without changing the library?
Three patterns held 30 of 30 runs in our suite. If you stay on the Functional API, read every pending __interrupt__ write from the checkpointer with saver.get_tuple(config).pending_writes, dedupe by interrupt id, and resume with Command(resume={id: value, ...}); the workflow returned ['ans-0', 'ans-1', 'ans-2'] with no interrupts left. Or move the fan-out to a StateGraph with Send, where get_state().interrupts lists all 3 ids and a map built from it finishes the run. Or serialize the @task calls with ask(i).result() inside the loop, so only one interrupt is pending and a scalar resume works each round. We tested on InMemorySaver only. pending_writes is an internal checkpointer detail, not part of the public get_state() / invoke API; we tested it only on InMemorySaver.
Why is a scalar resume or a resume map built from get_state().interrupts not enough?
A scalar Command(resume=...) is refused because several interrupts are pending; that happened in 30 of 30 runs. A map built from the one id in __interrupt__ or get_state().interrupts is accepted but does not finish the run: finished was False in 30 of 30, get_state still showed 1 interrupt, and the checkpointer still had 3 pending interrupt writes. The other ids are only in the checkpointer's pending writes.
How is this different from the LangGraph multiple interrupts guide, the multi-interrupt template, and the parallel tool approval guide?
The multiple interrupts guide (/guides/langgraph-multiple-interrupts-resume/) is a StateGraph how-to: several interrupt() calls in one node are matched by position, and parallel nodes are resumed by id. That path already surfaces every id. The multi-interrupt template (/templates/langgraph-multi-interrupt/) is the tested StateGraph starter for that how-to, not a Functional API hidden-id fix; it is the working pattern if you move the fan-out to StateGraph. The parallel tool approval guide (/guides/langgraph-parallel-tool-approval-runs-twice/) covers create_agent with HumanInTheLoopMiddleware and durability='exit' (issue #9676), where an already-approved tool call is asked again and can run twice. This page is about Functional API @task interrupts that invoke and get_state do not show.
Related
- LangGraph multiple interrupts: how to resume each one correctly. A StateGraph how-to: several interrupts in one node are matched by position, and parallel nodes are resumed by id. That path already surfaces every id. This page is the Functional API, where
invokeandget_statehide the extra ids. - Multiple interrupts in one node (template). The tested StateGraph starter for that how-to. It is not a Functional API hidden-id fix. It is the working pattern if you move the fan-out to StateGraph.
- LangGraph parallel tool approval: an approved call is asked again and runs twice.
create_agent+HumanInTheLoopMiddleware+durability="exit"(issue #9676): an already-approved tool call is asked again and can run twice. That is a different behaviour, not Functional API interrupt visibility.
You can browse every starter in the templates index.
Stuck on a LangGraph approval or resume flow? Send a minimal repro; you pay $79 only when our patch passes it.