Skip to content
masterclass Buddy

Upstash · Function

context.waitForEvent

Pauses a workflow until a matching event arrives or a timeout ends. It returns the event payload and shows whether the wait ended by timeout.

Last updated

Syntax

context.waitForEvent<TEventData>(stepId, eventId, options?)

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

Subscribe
  • context.notify
  • context.createWebhook
  • context.waitForWebhook
  • workflowRunId

Source: context.waitForEvent - Upstash Documentation. Checked 2026-11-03.