Upstash · Function
context.sleep
Pauses an Upstash Workflow for a duration. The request ends while the workflow waits, and a later request resumes execution without using compute during the delay.
Last updated
Syntax
await context.sleep(stepName, duration)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
context.sleepUntilcontext.runcontext.waitForEventUpstash QStash