diff --git a/tasks/README.md b/tasks/README.md index f3e8fa8cea1..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 @@ -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: 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";