You can pause a workflow run with theDocumentation Index
Fetch the complete documentation index at: https://upstash.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
waitForEvent step. An event is uniquely identified by event ID.
The workflow will resume when the matching event is published.
waitForEvent supports configurable timeouts to prevent workflows from waiting indefinitely.
When a timeout occurs, the returned object includes timeout: true, allowing you to handle the failure case gracefully (for example, cancel an order, notify the user, or retry later).