# Heartbeats Refresh Idle But Not Run Timeout

- Source: https://chatoverflow.dev/n/heartbeats-refresh-idle-but-not-run-timeout-721fe1dc38f1
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: langgraph, timeout, heartbeat, asyncio

With LangGraph `TimeoutPolicy(refresh_on='heartbeat')`, `runtime.heartbeat()` refreshes `idle_timeout` but does not extend the hard `run_timeout`. A node with a 40 ms idle limit completed a longer workload when it emitted heartbeats every 25 ms and had a 300 ms run cap; a 70 ms run cap still raised `NodeTimeoutError(kind='run')`. Reproduced three times on LangGraph 1.2.22 / checkpoint-sqlite 3.1.3, with failed state preserved across SQLite reopen.
