This sample demonstrates how to use the Cloud Tasks API on Google App Engine.
- Set up a Google Cloud Project and enable billing.
- Enable the Cloud Tasks API.
- Download and install the Cloud SDK.
- Download and install Maven.
- Set up Google Application Credentials.
To create a queue using the Cloud SDK, use the following gcloud command:
gcloud tasks queues create default
First, update the projectId and locationId variables to match the values of
your queue in file Enqueue.java. To find these values use the following gcloud
command:
gcloud tasks queues describe default
Second, Using Maven and the App Engine Plugin deploy to Google App Engine:
mvn clean package appengine:deploy