Skip to content

creating tasks

ludoch edited this page Apr 15, 2026 · 2 revisions

Creating Pull Tasks

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.

Then you set Method to PULL.

Then you use the builder and TaskOptions.Method.PULL to add the task.

Then you set the Task method to PULL.

The following example puts tasks in a pull queue named 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)

Then use the queue's add() method with TaskOptions.Method.PULL to place tasks in a pull queue named pull-queue:

View TaskqueueServlet.java on GitHub (region: add_task)

What's next

Clone this wiki locally