Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I check programmatically the status of my task queue in Google Appengine?

I am firing up a queue to complete some tasks in Python Appengine application. Is there a way to get the status of the queue? I would like to check whether it is still running or has incomplete tasks.

like image 882
topless Avatar asked Aug 10 '12 13:08

topless


1 Answers

Google just released a new SDK Version 1.7.2 - September 18, 2012 and it looks like you can have it using the QueueStatistics. From the release notes:

You can now fetch Task Queue Statistics. This allows you to fetch statistics and information about your task queue from within your application. Statistics include information such as the number of tasks in a queue, how many tasks were executed in the last minute and enforced rate. This is an experimental feature.

like image 125
Lipis Avatar answered Oct 28 '22 14:10

Lipis