Google App Engine (Java) Application API TaskQueue: How to request the number of running / pending tasks?

Is it possible to programmatically request the task queue API to find out how many tasks are currently running / waiting?

I see no way to do this in the API, so I resorted to creating objects in the data warehouse to represent tasks in the queue. When the task starts, it then deletes the corresponding record from the data store.

As you can imagine, it's easy to get out of sync. In fact, I would be very pleased to get a simple queue of tasks for a given queue name.

+6
java google-app-engine task-queue
source share
4 answers

Unfortunately, there is no API that you can use to get information about task queues. Nevertheless, this is what I believe that the team has in mind the future (the program interface for obtaining statistics that we now see on the control panel, for example, the task score).

+2
source share

As announced in April, task queue statistics are now available for trusted testers. Task queue statistics allows you to get statistics and information about your task queue from your application. http://googleappengine.blogspot.com.au/2012_04_01_archive.html

+1
source share

The QueueStatistics class can provide you with information about statistics such as the number of tasks in the queue and the tasks currently being performed.

0
source share

In java:

QueueFactory.getQueue(queueName).fetchStatistics().getNumTasks(); 
0
source share

All Articles