Hi Iap, On 23 February 2010 04:23, Iap <iap...@gmail.com> wrote: > How to do looping task in the taskqueue correctly?
I think what you really need is to run a cron every so often. If your requirements are more than once per minute, why not run a cron every minute which adds a specific numberof tasks which are set to run throughout that next minute. If you're still set on using the task queue to spawn itself, there is a header you can use called 'X-AppEngine-TaskRetryCount'. You can read this value and then decide whether to spawn yourself or not. See: http://code.google.com/appengine/docs/python/taskqueue/overview.html#Task_Request_Headers For example, if that value is 1, then respawn. If it is greater than 1, then just end the current task (successfully) and do not respawn. Have a play and see what works. Hope that helps. Cheers, Andy -- contact: Andrew Chilton website: http://www.chilts.org/blog/ -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.