From 3dfac094a51abdc30e1f301f413b11f506a937da Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Wed, 21 Oct 2020 15:54:08 -0500 Subject: [PATCH] fix(samples): region tag collided with tasks-api (#476) --- cloud-tasks/createTask.js | 2 -- cloud-tasks/quickstart.js | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/cloud-tasks/createTask.js b/cloud-tasks/createTask.js index fb3335f2bd..2f191b5869 100644 --- a/cloud-tasks/createTask.js +++ b/cloud-tasks/createTask.js @@ -30,7 +30,6 @@ function main( inSeconds = 0 // Delay in task execution ) { // [START cloud_tasks_appengine_create_task] - // [START tasks_quickstart] // Imports the Google Cloud Tasks library. const {CloudTasksClient} = require('@google-cloud/tasks'); @@ -75,7 +74,6 @@ function main( } createTask(); // [END cloud_tasks_appengine_create_task] - // [END tasks_quickstart] } process.on('unhandledRejection', err => { diff --git a/cloud-tasks/quickstart.js b/cloud-tasks/quickstart.js index c36fda6035..a0eedd8349 100644 --- a/cloud-tasks/quickstart.js +++ b/cloud-tasks/quickstart.js @@ -18,7 +18,7 @@ * Create a task for a given queue with an arbitrary payload. */ function main(project, location, queue, payload, inSeconds) { - // [START tasks_quickstart] + // [START cloud_tasks_quickstart] // Imports the Google Cloud Tasks library. const {CloudTasksClient} = require('@google-cloud/tasks'); @@ -65,7 +65,7 @@ function main(project, location, queue, payload, inSeconds) { console.log(`Created task ${name}`); } quickstart(); - // [END tasks_quickstart] + // [END cloud_tasks_quickstart] } process.on('unhandledRejection', err => {