Skip to content

Commit dc5d84f

Browse files
jsimonweblesv
authored andcommitted
Updating sample and instructions to use queue.xml (#222)
* Replaced queue.xml with queue.yaml * Add block to handle null payload * Add queue.xml in place of queue.yaml * Updating README.md to reference queue.xml * Updating to use queue.xml instead of queue.yaml
1 parent aad960b commit dc5d84f

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<queue-entries>
2+
<queue>
3+
<name>pull-queue</name>
4+
<mode>pull</mode>
5+
<acl>
6+
<user-email>[email protected]</user-email> <!-- can list, get, lease, delete, and update tasks -->
7+
<writer-email>[email protected]</user-email> <!-- can insert tasks, in addition to rights granted by being a user_email above -->
8+
<writer-email>[email protected]</writer-email> <!-- can insert tasks, in addition to rights granted by being a user_email above -->
9+
</acl>
10+
</queue>
11+
</queue-entries>

appengine/taskqueue/pull/src/main/webapp/WEB-INF/queue.yaml

-7
This file was deleted.

taskqueue/pull/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ reuse an existing project by clicking on it.
2020
1. Install [Google Cloud SDK](https://cloud.google.com/sdk/)
2121
1. Run the following command to authorize the Cloud SDK and configure your project:
2222
<pre>gcloud init</pre>
23-
1. Add your authenticated email account as 'user_email' and 'writer_email' elements to the queue.yaml
23+
1. Add your authenticated email account as '&lt;user-email&gt;' and '&lt;writer-email&gt;' elements to the queue.xml
2424
file of the App Engine app that created the pull queue task you're trying to access. For more details, please see
2525
[Defining Pull Queues](https://cloud.google.com/appengine/docs/java/taskqueue/overview-pull#Java_Defining_pull_queues).
2626
* Running the sample on a Google Compute Engine VM using Default Application Credentials:
@@ -29,7 +29,7 @@ reuse an existing project by clicking on it.
2929
section click "Create credentials" and choose "Service account key".
3030
1. On the "Create service account key" page, select "Compute Engine default service account" from the "Service Account" drop-down menu. Leave the Key type set to JSON and click the "Create" button.
3131
1. Once the service account is created, click the "Manage service accounts" link and copy the "Service account ID" of the "Compute Engine default service account".
32-
1. Add the "Service account ID" as 'user_email' and 'writer_email' elements to the queue.yaml file of the
32+
1. Add the "Service account ID" as '&lt;user-email&gt;' and '&lt;writer-email&gt;' elements to the queue.xml file of the
3333
App Engine app that created the pull queue task you're trying to access. For more details, please see
3434
[Defining Pull Queues](https://cloud.google.com/appengine/docs/java/taskqueue/overview-pull#Java_Defining_pull_queues).
3535

0 commit comments

Comments
 (0)