Skip to content
masterclass Buddy

Upstash · Function

context.run

context.run runs custom business logic as a workflow step and returns a Promise. Await calls in order for serial execution, or combine multiple promises for parallel execution.

Last updated

Syntax

context.run(stepName, stepFunction, options?)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • context.sleep
  • context.sleepUntil
  • context.call
  • context.waitForEvent
  • Workflow retries
  • Parallel steps

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