We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Pull Queues is not supported for this runtime.
Once you have created a pull queue, you can create tasks and add them to the queue.
First you need the name of the queue, which is defined in queue.xml.queue.yaml.
queue.xml
queue.yaml
Then you set Method to PULL.
Method
PULL
Then you use the builder and TaskOptions.Method.PULL to add the task.
TaskOptions.Method.PULL
Then you set the Task method to PULL.
method
The following example puts tasks in a pull queue named pull-queue:
pull-queue
First, get the queue using the queue name defined in the queue.xml`
queue.yaml `:
View TaskqueueServlet.java on GitHub (region: get_queue)
TaskqueueServlet.java
Then use the queue's add() method with TaskOptions.Method.PULL to place tasks in a pull queue named pull-queue:
add()
View TaskqueueServlet.java on GitHub (region: add_task)