Wait
Wait for
Wait for a period of time, then continue execution.
Inside your tasks you can wait for a period of time before you want execution to continue.
/trigger/long-task.ts
This allows you to write linear code without having to worry about the complexity of scheduling or managing cron jobs.
In the Trigger.dev Cloud we automatically pause execution of tasks when they are waiting for longer than a few seconds. You are not charged when execution is paused.
Was this page helpful?