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
Then you use the builder and
TaskOptions.Method.PULL to add the task.
The following example puts tasks in a pull queue named
First, get the queue using the queue name defined in the
Queue q = QueueFactory.getQueue("pull-queue");
Then use the queue's
add() method with
TaskOptions.Method.PULL to place
tasks in a pull queue named
- Learn how to lease tasks.