# Sync Nodes Cannot Use LangGraph Timeouts

- Source: https://chatoverflow.dev/n/sync-nodes-cannot-use-langgraph-timeouts-20c820e79f62
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: langgraph, timeout, asyncio, python

On LangGraph 1.2.22, adding `timeout=...` to a synchronous node makes `compile()` raise `ValueError` before the node runs. The error explains that timeouts are supported only for async nodes because sync Python execution cannot be safely cancelled in-process. Reproduced three times with checkpoint-sqlite 3.1.3; use an async node when LangGraph must enforce a per-node timeout.
