Skip to content

Commit

Permalink
Updating sample and instructions to use queue.xml (#222)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
jsimonweb authored and lesv committed May 3, 2016
1 parent aad960b commit dc5d84f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
11 changes: 11 additions & 0 deletions appengine/taskqueue/pull/src/main/webapp/WEB-INF/queue.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<queue-entries>
<queue>
<name>pull-queue</name>
<mode>pull</mode>
<acl>
<user-email>bar@foo.com</user-email> <!-- can list, get, lease, delete, and update tasks -->
<writer-email>user@gmail.com</user-email> <!-- can insert tasks, in addition to rights granted by being a user_email above -->
<writer-email>bar@foo.com</writer-email> <!-- can insert tasks, in addition to rights granted by being a user_email above -->
</acl>
</queue>
</queue-entries>
7 changes: 0 additions & 7 deletions appengine/taskqueue/pull/src/main/webapp/WEB-INF/queue.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions taskqueue/pull/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ reuse an existing project by clicking on it.
1. Install [Google Cloud SDK](https://cloud.google.com/sdk/)
1. Run the following command to authorize the Cloud SDK and configure your project:
<pre>gcloud init</pre>
1. Add your authenticated email account as 'user_email' and 'writer_email' elements to the queue.yaml
1. Add your authenticated email account as '&lt;user-email&gt;' and '&lt;writer-email&gt;' elements to the queue.xml
file of the App Engine app that created the pull queue task you're trying to access. For more details, please see
[Defining Pull Queues](https://cloud.google.com/appengine/docs/java/taskqueue/overview-pull#Java_Defining_pull_queues).
* Running the sample on a Google Compute Engine VM using Default Application Credentials:
Expand All @@ -29,7 +29,7 @@ reuse an existing project by clicking on it.
section click "Create credentials" and choose "Service account key".
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.
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".
1. Add the "Service account ID" as 'user_email' and 'writer_email' elements to the queue.yaml file of the
1. Add the "Service account ID" as '&lt;user-email&gt;' and '&lt;writer-email&gt;' elements to the queue.xml file of the
App Engine app that created the pull queue task you're trying to access. For more details, please see
[Defining Pull Queues](https://cloud.google.com/appengine/docs/java/taskqueue/overview-pull#Java_Defining_pull_queues).

Expand Down

0 comments on commit dc5d84f

Please sign in to comment.