开发者

Google App Engine, Task Queues

开发者 https://www.devze.com 2022-12-30 23:56 出处:网络
How can I remove a task from a task queue? Is Google App Engine Task Qu开发者_开发百科eue removes the task from the queue after it is executed?The task queue API only specifies a function for adding t

How can I remove a task from a task queue? Is Google App Engine Task Qu开发者_开发百科eue removes the task from the queue after it is executed?


The task queue API only specifies a function for adding tasks. It will remove them when they complete.

You can, however, manually remove them using the admin console.

Details: http://code.google.com/appengine/docs/python/taskqueue/overview.html#Managing_Task_Queues


A task is removed from the queue when it executes if and only if it returns an HTTP 200 response. For any other response, it will be retried until it successfully executes.

As David's answer indicates, they can also be manually removed.


Tasks can be deleted via delete_tasks function.

Details: https://developers.google.com/appengine/docs/python/taskqueue/queues#Queue_delete_tasks

0

精彩评论

暂无评论...
验证码 换一张
取 消