[appengine-java] Re: how to query TaskQueue for count of running/pending tasks?

2011-01-23 Thread armh...@gmail.com
Hi Didier,

I'm told (unofficially) that this is in fact planned for the future:

http://stackoverflow.com/questions/4770011/google-app-engine-java-taskqueue-api-how-to-query-number-of-running-pending-ta/4771423#4771423

It would be nice to hear something official though.

Regards,
George

On Jan 23, 3:02 am, Didier Durand  wrote:
> Hi,
>
> it seems that you're right: I also see no other way and did the same
> as you (with same issue)
>
> Nothing about this in the official roadmap either.
>
> didier
>
> On Jan 22, 8:19 pm, "armh...@gmail.com"  wrote:
>
>
>
>
>
>
>
> > Is it possible to programmatically query the Task Queue API to see how
> > many tasks are currently executing/pending?
>
> > I don't see any way to do this in the API, and so I resorted to
> > creating objects in the Datastore to represent queued tasks. When run,
> > the tasks then remove their corresponding entry from the Datastore.
>
> > As you can imagine, it's easy for this to get out of sync. I'd
> > actually be pretty happy just to be able to get a simple count of
> > tasks in the queue for a given queue name.
>
> > Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] how to query TaskQueue for count of running/pending tasks?

2011-01-22 Thread armh...@gmail.com
Is it possible to programmatically query the Task Queue API to see how
many tasks are currently executing/pending?

I don't see any way to do this in the API, and so I resorted to
creating objects in the Datastore to represent queued tasks. When run,
the tasks then remove their corresponding entry from the Datastore.

As you can imagine, it's easy for this to get out of sync. I'd
actually be pretty happy just to be able to get a simple count of
tasks in the queue for a given queue name.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.