在Google App Engine TaskQueue中获取任务 [英] Getting the Tasks in a Google App Engine TaskQueue

查看:134
本文介绍了在Google App Engine TaskQueue中获取任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道您可以在Dashboard或开发服务器控制台中查看当前正在排队并正在运行的任务。但是,有没有办法以编程方式获取该列表?文档只描述如何将任务添加到队列中,而不是如何列出和/或取消它们。

I know you can view the currently queued and running tasks in the Dashboard or development server console. However, is there any way to get that list programmatically? The docs only describe how to add tasks to the queue, but not how to list and/or cancel them.

请在python中。

In python please.

推荐答案

它当然不是这样。如何改变任务处理程序,无论它处理任务url调用,检查指定的工作是否仍然需要完成,并且如果任务将被删除,立即返回200 OK。

It sure doesn't look that way. Instead of removing the task, how about altering the task handler, whatever it is that handles the task url invokes, to check to see if the work specified still needs to be done, and just return 200 OK immediately if the task would be deleted.

问题在谷歌代码似乎要求相同的功能。

This issue on google-code appears to request the very same feature.

这篇关于在Google App Engine TaskQueue中获取任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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