Skip to content

Commit 6181758

Browse files
committed
update endpoint and env var
1 parent 939c5c7 commit 6181758

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

appengine-java8/tasks/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Set environment variables:
6161
First, your project ID:
6262

6363
```
64-
export PROJECT_ID=my-project-id
64+
export GOOGLE_CLOUD_PROJECT=my-project-id
6565
```
6666

6767
Then the queue ID, as specified at queue creation time. Queue IDs already
@@ -81,11 +81,11 @@ location is "us-central1").
8181
export LOCATION_ID=us-central1
8282
```
8383

84-
Create a task, targeted at the `log_payload` endpoint, with a payload specified:
84+
Create a task, targeted at the `/tasks/create` endpoint, with a payload specified:
8585

8686
```
8787
mvn exec:java -Dexec.mainClass="com.example.task.CreateTask" \
88-
-Dexec.args="--project-id $PROJECT_ID --queue $QUEUE_ID --location $LOCATION_ID --payload hello"
88+
-Dexec.args="--project-id $GOOGLE_CLOUD_PROJECT --queue $QUEUE_ID --location $LOCATION_ID --payload hello"
8989
```
9090

9191
The App Engine app serves as a target for the push requests. It has an
@@ -101,5 +101,5 @@ Create a task that will be scheduled for a time in the future using the
101101

102102
```
103103
mvn exec:java -Dexec.mainClass="com.example.task.CreateTask" \
104-
-Dexec.args="--project-id $PROJECT_ID --queue $QUEUE_ID --location $LOCATION_ID --payload hello --in-seconds 30"
104+
-Dexec.args="--project-id $GOOGLE_CLOUD_PROJECT --queue $QUEUE_ID --location $LOCATION_ID --payload hello --in-seconds 30"
105105
```

tasks/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ mvn clean assembly:single
4343
Optionally, you can set up your settings as environment variables:
4444

4545
```
46-
export PROJECT_ID=<YOUR_PROJECT_ID>
46+
export GOOGLE_CLOUD_PROJECT=<YOUR_PROJECT_ID>
4747
export LOCATION_ID=<YOUR_ZONE>
4848
export QUEUE_ID=<YOUR_QUEUE_NAME>
4949
```
@@ -52,13 +52,13 @@ Next, create a task for a queue:
5252

5353
```
5454
mvn exec:java -Dexec.mainClass="com.example.Quickstart" \
55-
-Dexec.args="create-task --project $PROJECT_ID --queue $QUEUE_ID --location $LOCATION_ID"
55+
-Dexec.args="create-task --project $GOOGLE_CLOUD_PROJECT --queue $QUEUE_ID --location $LOCATION_ID"
5656
```
5757

5858
Finally, pull and acknowledge a task:
5959

6060
```
6161
mvn exec:java -Dexec.mainClass="com.example.task.Quickstart" \
62-
-Dexec.args="lease-and-ack-task --project $PROJECT_ID --queue $QUEUE_ID --location $LOCATION_ID"
62+
-Dexec.args="lease-and-ack-task --project $GOOGLE_CLOUD_PROJECT --queue $QUEUE_ID --location $LOCATION_ID"
6363
```
6464
Note that usually, there would be a processing step in between pulling a task and acknowledging it.

0 commit comments

Comments
 (0)