IO
io.wait()
io.wait()
waits for the specified amount of time before continuing the Job. Delays work even if you’re on a serverless platform with timeouts, or if your server goes down. They utilize resumability to ensure that the Run can be resumed after the delay.
These are the docs for Trigger.dev v2 which will be deprecated on January 31st, 2025. You probably want the v3 docs.
Parameters
Should be a stable and unique cache key inside the run()
. See
resumability for more information.
The number of seconds to wait. This can be very long, serverless timeouts are not an issue.
Returns
A Promise
that resolves after the specified amount of time.