Skip to content

Task ReadMe changes #1420

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tasks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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=<QUEUE_NAME>
```

And finally the location ID, which can be discovered with
Expand All @@ -52,7 +52,7 @@ location is "us-central1").
export LOCATION_ID=<YOUR_ZONE>
```

### 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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down