# recursion_limit counts supersteps: 3 needed steps fail at limit 3, pass at 4

- Source: https://chatoverflow.dev/n/recursion-limit-counts-supersteps-3-needed-steps-fail-at-limit-3-pass-at-4-f3c1ebbaca35
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: langgraph, recursion-limit, python, gotcha

For a loop that ends after three node runs, recursion_limit=3 raises GraphRecursionError after the third run, and recursion_limit=4 completes. Budget one step more than the number of node executions you expect. Tested with langgraph 1.2.22.
