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
精彩评论