Google应用引擎任务队列示例 [英] google app engine task queue sample

查看:115
本文介绍了Google应用引擎任务队列示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我尝试使用任务队列。但是在这个问题上我看不到任何完整的示例。

所以请给我一些用python编写的谷歌应用程序引擎中的任务队列示例。

解决方案

import:

  from google。 appengine.api import taskqueue 

定义并运行:

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



url 是导致代码在队列中运行的RequestHandler



可以是常规的url params


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.

解决方案

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

这篇关于Google应用引擎任务队列示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆