pocoa
pocoa

Reputation: 4337

Google App Engine, Task Queues

How can I remove a task from a task queue? Is Google App Engine Task Queue removes the task from the queue after it is executed?

Upvotes: 3

Views: 1048

Answers (3)

Wooble
Wooble

Reputation: 89927

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.

Upvotes: 3

kolistivra
kolistivra

Reputation: 4429

Tasks can be deleted via delete_tasks function.

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

Upvotes: 1

David Underhill
David Underhill

Reputation: 16243

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

Upvotes: 3

Related Questions