目前,我尝试使用任务队列。但我没有看到关于此事的任何完整样本。
所以请在谷歌应用引擎中给我一些任务队列样本,用python编写。
答案 0 :(得分:3)
导入:
from google.appengine.api import taskqueue
定义并运行:
taskqueue.add(url='/service', params={'user': user}, method="GET")
url 是导致代码在队列中运行的RequestHandler
params 可以是常规网址参数
答案 1 :(得分:1)
Google文档中的示例很简单但很完整。 http://code.google.com/appengine/docs/python/taskqueue/overview.html