From fb20fe8f32cc5aeaaccd9e107d1d928492fddc3a Mon Sep 17 00:00:00 2001 From: averikitsch Date: Tue, 14 May 2019 18:53:17 -0700 Subject: [PATCH 1/2] Readme update --- tasks/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/README.md b/tasks/README.md index f3e8fa8cea1..65a09ed5417 100644 --- a/tasks/README.md +++ b/tasks/README.md @@ -39,7 +39,7 @@ Then the queue ID, as specified at queue creation time. Queue IDs already created can be listed with `gcloud beta tasks queues list`. ``` -export QUEUE_ID=my-queue +export QUEUE_ID= ``` And finally the location ID, which can be discovered with @@ -52,7 +52,7 @@ location is "us-central1"). export LOCATION_ID= ``` -### Using HTTP Push Queues +### Creating Tasks with HTTP Targets Set an environment variable for the endpoint to your task handler. This is an example url: From 7cf546d7386d3bb0ff9c5381821748ed2ddb4ebc Mon Sep 17 00:00:00 2001 From: averikitsch Date: Wed, 15 May 2019 08:13:10 -0700 Subject: [PATCH 2/2] fix queue name --- tasks/README.md | 4 ++-- .../main/java/com/example/task/CreateHttpTaskWithToken.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/README.md b/tasks/README.md index 65a09ed5417..e69b7360aa1 100644 --- a/tasks/README.md +++ b/tasks/README.md @@ -2,10 +2,10 @@ This sample demonstrates using the Cloud Tasks client library. -`CreateHTTPTask.java` constructs a task with an HTTP target and pushes it +`CreateHttpTask.java` constructs a task with an HTTP target and pushes it to your queue. -`CreateHTTPTask.java` constructs a task with an HTTP target and OIDC token and +`CreateHttpTask.java` constructs a task with an HTTP target and OIDC token and pushes it to your queue. ## Initial Setup diff --git a/tasks/src/main/java/com/example/task/CreateHttpTaskWithToken.java b/tasks/src/main/java/com/example/task/CreateHttpTaskWithToken.java index 978ddcc91b1..f67cee97d32 100644 --- a/tasks/src/main/java/com/example/task/CreateHttpTaskWithToken.java +++ b/tasks/src/main/java/com/example/task/CreateHttpTaskWithToken.java @@ -38,7 +38,7 @@ public static void main(String[] args) throws Exception { try (CloudTasksClient client = CloudTasksClient.create()) { // Variables provided by the system variables. // projectId = "my-project-id"; - // queueName = "my-appengine-queue"; + // queueName = "my-queue"; // location = "us-central1"; // url = "https://example.com/taskhandler"; String payload = "hello";