Back to Trigger

Paused Execution Free

docs/snippets/paused-execution-free.mdx

4.5.9663 B
Original Source

In the Trigger.dev Cloud we automatically pause execution of tasks when they are waiting for longer than a few seconds.

When triggering and waiting for subtasks, the parent is checkpointed and while waiting does not count towards compute usage. When waiting for a time period (wait.for or wait.until), a wait longer than 5 seconds does not count towards compute usage.

Free compute isn't the same as freed concurrency: the concurrency slot is only released once we've snapshotted the machine and shut it down. For wait.for and wait.until that happens 60 seconds into the wait, so anything shorter stays EXECUTING and holds its slot for the whole wait.