Skip to content
masterclass Buddy

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.

Subscribe
  • context.sleepUntil
  • context.run
  • context.waitForEvent
  • Upstash QStash

Source: context.sleep() - Upstash Documentation. Checked 2026-11-03.