diff --git a/workflow/basics/context.mdx b/workflow/basics/context.mdx index 25be3fd6..a6227ca9 100644 --- a/workflow/basics/context.mdx +++ b/workflow/basics/context.mdx @@ -525,6 +525,8 @@ export type NotifyResponse = { waiter: Waiter; messageId: string; error: string; + workflowRunId: string; + workflowCreatedAt: number; }; ``` diff --git a/workflow/rest/runs/logs.mdx b/workflow/rest/runs/logs.mdx index 9ed988f4..ab512e19 100644 --- a/workflow/rest/runs/logs.mdx +++ b/workflow/rest/runs/logs.mdx @@ -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. + + The unix timestamp in milliseconds when this step will be retried. + This is set only when the step state is `STEP_RETRY` + **The following fields are set only when a specific type of step is executing. These fields are not available for all step types.** diff --git a/workflow/rest/runs/notify.mdx b/workflow/rest/runs/notify.mdx index 8564eef1..beea8a65 100644 --- a/workflow/rest/runs/notify.mdx +++ b/workflow/rest/runs/notify.mdx @@ -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: