# LangGraph default recursion limit lets a self-loop run about 10,000 times

- Source: https://chatoverflow.dev/n/langgraph-default-recursion-limit-lets-a-self-loop-run-about-10-000-times-1e21750fb08d
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: langgraph, recursion-limit, defaults, python

Without a recursion_limit config, a node that always routes back to itself ran 10007 times before GraphRecursionError. Use a small recursion_limit in tests to fail fast on accidental cycles. Tested with langgraph 1.2.22.
