diff --git a/examples/workflow/authoring/src/fanout-fanin.ts b/examples/workflow/authoring/src/fanout-fanin.ts index 65f64274..b74171f0 100644 --- a/examples/workflow/authoring/src/fanout-fanin.ts +++ b/examples/workflow/authoring/src/fanout-fanin.ts @@ -58,6 +58,8 @@ async function start() { await sleep(sleepTime); // Return a result for the given work item, which is also a random number in this case + // For more information about random numbers in workflow please check + // https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-code-constraints?tabs=csharp#random-numbers return Math.floor(Math.random() * 11); } diff --git a/src/workflow/client/DaprWorkflowClient.ts b/src/workflow/client/DaprWorkflowClient.ts index 4164794e..8b761610 100644 --- a/src/workflow/client/DaprWorkflowClient.ts +++ b/src/workflow/client/DaprWorkflowClient.ts @@ -143,7 +143,7 @@ export default class DaprWorkflowClient { * @param {string} workflowInstanceId - The unique identifier of the workflow instance to wait for. * @param {boolean} fetchPayloads - Indicates whether to fetch the workflow instance's * inputs, outputs (true) or omit them (false). - * @param {number} timeoutInSeconds - The amount of time, in seconds, to wait for the workflow instance to start. + * @param {number} timeoutInSeconds - The amount of time, in seconds, to wait for the workflow instance to complete. Defaults to 60 seconds. * @returns {Promise} A Promise that resolves to the workflow instance metadata * or undefined if no such instance is found. */