Creating Pull Tasks

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.yaml. Then you set Method to PULL. The following example puts tasks in a pull queue named pull-queue:

t := &taskqueue.Task{
	Payload: []byte("hello world"),
	Method:  "PULL",
}
_, err := taskqueue.Add(ctx, t, "pull-queue")

What's next

Send feedback about...

App Engine standard environment for Go