You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6bf67ac
Browse filesBrowse the repository at this point in the historyBrowse files
Add optional whole-run wall-clock deadline to graph execution (#29)
CompiledGraph::with_run_deadline(d) bounds the whole run by a wall clock,
checked at every super-step boundary. When the elapsed run time first reaches
the deadline, the run stops *between* super-steps with TinyAgentsError::Timeout,
leaving the last committed boundary checkpoint intact and resumable.
This is the durable alternative to wrapping run() in an external
tokio::time::timeout, which aborts mid-super-step and cannot leave a clean
checkpoint. The deadline bounds scheduling, not a single in-flight node — pair
it with with_node_timeout to also bound individual handlers.
Tests: deadline trips between super-steps (Timeout); a run that finishes in time
is unaffected; a deadline trip on a checkpointed thread leaves the last boundary
checkpoint intact and the run resumes to completion. fmt + clippy -D warnings
clean; full suite green. Docs: builder.md.
0 commit comments