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

Function callGetJob

batch/get/get_task.js:60–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 const batchClient = new batchLib.v1.BatchServiceClient();
59
60 async function callGetJob() {
61 // Construct request
62 const request = {
63 name:
64 `projects/${projectId}/locations/${region}/jobs/${jobName}` +
65 `/taskGroups/${groupName}/tasks/${taskNumber}`,
66 };
67
68 // Run request
69 const response = await batchClient.getTask(request);
70 console.log(response);
71 }
72
73 await callGetJob();
74 // [END batch_get_task]

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected