Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions workflow/basics/context.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,8 @@ export type NotifyResponse = {
waiter: Waiter;
messageId: string;
error: string;
workflowRunId: string;
workflowCreatedAt: number;
};
```

Expand Down
4 changes: 4 additions & 0 deletions workflow/rest/runs/logs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,10 @@ To uniquely identify a single workflow run, include the `workflowCreatedAt` time
The unix timestamp in milliseconds when the message associated with this step has created.
</ResponseField>

<ResponseField name="nextDeliveryTime" type="number">
The unix timestamp in milliseconds when this step will be retried.
This is set only when the step state is `STEP_RETRY`
</ResponseField>

**The following fields are set only when a specific type of step is executing. These fields are not available for all step types.**

Expand Down
7 changes: 5 additions & 2 deletions workflow/rest/runs/notify.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ Notify workflows waiting for an event to resume them. See [our documentation to

## Response

The response contains a list of notified waiter objects and id of the message sent as a result of the notify request.
The response contains a list of
- notified waiter objects,
- id of the message sent,
- workflowRunId and workflowCreatedAt fields for the related workflow runs, as a result of the notify request.

```typescript
type NotifyResponse = { waiter: Waiter, messageId: string }[]
type NotifyResponse = { waiter: Waiter, messageId: string, workflowRunId: string, workflowCreatedAt: number}[]
```

More information about the `Waiter` object:
Expand Down