Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a5cdf27

Browse files
authored
chore(docs): Explain that getHandle doesn't validate workflowId (temporalio#400)
1 parent f7782d2 commit a5cdf27

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/client/src/workflow-client.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,10 @@ export class WorkflowClient {
652652
}
653653

654654
/**
655-
* Creates a Workflow handle for existing Workflow using `workflowId` and optional `runId`
655+
* Creates a Workflow handle for existing Workflow using `workflowId` and optional `runId`.
656+
*
657+
* This method does not validate `workflowId`. If there is no Workflow Execution with the given `workflowId`, handle
658+
* methods like `handle.describe()` will throw a `NOT_FOUND` error.
656659
*/
657660
public getHandle<T extends Workflow>(
658661
workflowId: string,

0 commit comments

Comments
 (0)