File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ Set environment variables:
6161First, your project ID:
6262
6363```
64- export PROJECT_ID =my-project-id
64+ export GOOGLE_CLOUD_PROJECT =my-project-id
6565```
6666
6767Then the queue ID, as specified at queue creation time. Queue IDs already
@@ -81,11 +81,11 @@ location is "us-central1").
8181export 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```
8787mvn 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
9191The 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```
103103mvn 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```
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ mvn clean assembly:single
4343Optionally, 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>
4747export LOCATION_ID=<YOUR_ZONE>
4848export QUEUE_ID=<YOUR_QUEUE_NAME>
4949```
@@ -52,13 +52,13 @@ Next, create a task for a queue:
5252
5353```
5454mvn 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
5858Finally, pull and acknowledge a task:
5959
6060```
6161mvn 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```
6464Note that usually, there would be a processing step in between pulling a task and acknowledging it.
You can’t perform that action at this time.
0 commit comments