You can notify all the workflow runs waitingi for a specific event ID. There are two ways to send a notify request.Documentation Index
Fetch the complete documentation index at: https://upstash.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Notify within Workflow
Notifies other workflows waiting for a specific event from within a workflow.External Notification
You can also notify workflows from external systems using the Workflow Client:Lookback Functionality
By default, if you callnotify before a workflow reaches its waitForEvent step, the notification will be lost (race condition). To prevent this, you can provide a workflowRunId parameter which enables lookback - the notification will be stored and delivered even if sent before the wait step.
This is particularly useful when:
- You trigger a workflow and immediately want to send it an event
- You have concurrent operations where timing is unpredictable
- You want to eliminate race conditions in your event-driven workflows
When using lookback with
workflowRunId, the notification is targeted to a specific workflow run rather than all waiters with that event ID.