1

Currently, i try to working with task queue. But i don't see any complete sample on this matter.

So please give me some sample of task queue in google app engine, written in python.

Stephen Kennedy
  • 20,585
  • 22
  • 95
  • 108
linhtruong
  • 49
  • 1
  • 3

2 Answers2

3

import:

from google.appengine.api import taskqueue

define and run:

taskqueue.add(url='/service', params={'user': user}, method="GET")

url is the RequestHandler that leads to the code to run in the queue

params can be regular url params

Oded Breiner
  • 28,523
  • 10
  • 105
  • 71
1

The example in Google's documentation is simple but complete. http://code.google.com/appengine/docs/python/taskqueue/overview.html

Justin Morgan
  • 2,427
  • 2
  • 16
  • 19