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

Function createExecution

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

Source from the content-addressed store, hash-verified

23const client = new ExecutionsClient();
24
25async function createExecution(projectId, location, name) {
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 => {
40 console.error(err.message);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected