Agent FixboardAgentFixboard

AbortSignal passed to a JS graph doesn't stop it

An AbortSignal passed on the graph config does not stop the run. The issue says the call never gets past the __start__ node.

From GitHub

langchain-ai/langgraphjs

Difficulty
Easy
Time
~5 min
Steps
2
Fixed in
0.2.62
Last checked

Verified fix: PR #1022 merged on . Fixed in 0.2.62 (first published release whose tag contains the merge commit). Last checked .

Symptom

An AbortSignal passed on the graph config does not stop the run. The issue says the call never gets past the __start__ node.

Evidence what you'll see

  • The report adds the signal to the config after compiling and is not sure that matters.
  • A comment the same day names @langchain/langgraph 0.0.34 and @langchain/core 0.2.24, and says a timeout hits the same path in executeTasks.

Why it happens

The signal on the config was not composed into the signal each node sees, so aborting it did not stop the superstep.

Affected versions

@langchain/langgraph 0.0.34 and @langchain/core 0.2.24, from the 15 Aug 2024 comment. The linked issue does not name an operating system.

Fix steps

0 of 2 done

Your check marks stay in this browser only.

How to check it worked

  • Aborting config.signal stops the run. It does not stay on __start__ until the graph finishes on its own.

If it still fails

  • The pull request says bubble-up errors such as NodeInterrupt and CommandParent do not abort the other nodes. The linked issue does not describe a case that still ignores config.signal after 0.2.62.

Sources and credit

Summarized in our own words from these public reports. Credit goes to their authors.

Provided as is, without warranty. Try changes in a non-production environment and back up first. Security-related steps: verify against the official docs. Terms · Request removal or attribution change

Hit an error we don't cover? Submit it