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
Vouch request: alexvervloet (docs fix for maxDuration exclusions) #4874
I've been porting a durable agent runtime onto Trigger.dev and writing up which parts of my hand-rolled version the platform made redundant, which meant reading the docs fairly closely. I hit one thing I'd like to fix.
The maxDuration page says CPU time "does not include time spent waiting during the following", then lists wait.for, triggerAndWait and batchTriggerAndWait. The list reads as exhaustive, but /wait documents four wait functions and three of them are missing here: wait.until(), wait.forToken() and inputStream.wait().
I got this wrong in my own writeup because of it. I was using wait.forToken() for a human approval gate, read the list, and concluded a day-long approval would burn the run's maxDuration. It doesn't. The human-in-the-loop guide states the general rule already, that maxDuration "measures active CPU time and excludes suspended waitpoint time, exactly like wait.for", but the reference page is where you look when you're deciding whether a wait is safe.
The change states that rule on the reference page and completes the list. Five lines, one file, no behaviour change. The branch is ready if it's useful to look at before vouching:
Eight years shipping React, React Native and Node, now building AI systems from scratch.
The port that turned this up is at https://github.com/alexvervloet/deskhand, a support agent allowed to refund money, where the writeup in docs/TRIGGER-PORT.md covers what a durable execution platform absorbed and what it did not.
Activity
matt-aitken commentedon Oct 7, 2026
We have a new Vouch policy, please see the discussion here: #5010