google app engine task queue sample

2019-08-04 06:37发布

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.

2条回答
等我变得足够好
2楼-- · 2019-08-04 07:10

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

查看更多
手持菜刀,她持情操
3楼-- · 2019-08-04 07:10

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

查看更多
登录 后发表回答