[appengine-java] Re: Failing tasks getting duplicated

2011-04-21 Thread John
Any update from App Engine team? I have thousands of tasks being
created everytime I have a bug in one of them :(

-- 
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] Re: Failing tasks getting duplicated

2011-04-17 Thread nischalshetty
Pretty weird. Let's hope someone from the GAE team peeps into this thread. I 
have thousands of tasks being generated every minute and there are errors 
when they are executed. I'm hoping they don't get duplicated. There's no 
way for me to know so if what you say is true then it's trouble for a lot of 
us.

-N

-- 
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.



Re: [appengine-java] Re: Failing tasks getting duplicated

2011-04-17 Thread Fabrizio Accatino
*If a task fails to execute* (by returning any HTTP status code outside of
the range *200-299*), App Engine retries *until it succeeds*.
http://code.google.com/appengine/docs/java/taskqueue/overview.html#Task_Execution

So, if you need to run you tasks once, ensure you will return always http
200. The simpler way: put a try-catch in your servlet entry point and catch
all exceptions. A quite brutal but it works.

   fabrizio


On Sun, Apr 17, 2011 at 8:34 AM, nischalshetty nischalshett...@gmail.comwrote:

 Pretty weird. Let's hope someone from the GAE team peeps into this thread.
 I have thousands of tasks being generated every minute and there are errors
 when they are executed. I'm hoping they don't get duplicated. There's no
 way for me to know so if what you say is true then it's trouble for a lot of
 us.

-- 
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] Re: Failing tasks getting duplicated

2011-04-16 Thread John
Yes. This behavior is reproducible and has been observed on different
applications actually. When the task returns a 500 response code, it
gets duplicated for some reason.


On Apr 16, 1:50 am, nischalshetty nischalshett...@gmail.com wrote:
 When a task fails, the same task would be retried again. Ideally if you
 have just one task in your system and that fails a 100 times at the end of
 the day you should still have only one task in the queue.

 Are you sure you do not have any logic in the url that the task calls where
 you create a new task?

-- 
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] Re: Failing tasks getting duplicated

2011-04-15 Thread nischalshetty
When a task fails, the same task would be retried again. Ideally if you 
have just one task in your system and that fails a 100 times at the end of 
the day you should still have only one task in the queue.

Are you sure you do not have any logic in the url that the task calls where 
you create a new task?


-- 
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.