MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/nodejs-docs-samples / createExecution

Function createExecution

workflows/create-execution.ts:21–37  ·  view source on GitHub ↗
(
  projectId: string,
  location: string,
  name: string
)

Source from the content-addressed store, hash-verified

19const client: ExecutionsClient = new ExecutionsClient();
20
21async function createExecution(
22 projectId: string,
23 location: string,
24 name: string
25) {
26 /**
27 * TODO(developer): Uncomment these variables before running the sample.
28 */
29 // const projectId = 'my-project';
30 // const location = 'us-central1';
31 // const name = 'my-test-workflow';
32
33 const [resp] = await client.createExecution({
34 parent: client.workflowPath(projectId, location, name),
35 });
36 console.info(`name: ${resp.name}`);
37}
38
39createExecution(projectId, location, name).catch((err: Error) => {
40 console.error(err.message);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected