Re: [google-appengine] Task Queue Strange Errors/Defects

2011-05-01 Thread Ravi Sharma
Cron Jobs may not help me here as cron jobs schdule format is like this..and i want my job to run every second. Now i can see only one way which is Run a cron job every minues...insert 60 tasks and task queue should be configured to run only 1 task per second but i m not sure if this setup will

Re: [google-appengine] Task Queue Strange Errors/Defects

2011-05-01 Thread Robert Kluin
Hi Ravi, Responses inline. On Sat, Apr 30, 2011 at 17:07, Ravi Sharma wrote: > Hi Robert, > How naming the task will help me?Sorry i didnt understand it. But anyways i > have named them now. The purpose in naming tasks is to help prevent fork-bombs. It helps because otherwise if your task fa

Re: [google-appengine] Task Queue Strange Errors/Defects

2011-04-30 Thread nischalshetty
You can also schedule a cron job if calling a particular URL every n seconds is your only aim. Having said that, tasks run only once. But in cases of failures, they can be run again. Not sure, but is there a way to set a limit on the number of tasks in a queue? If there's an option like that, tr

Re: [google-appengine] Task Queue Strange Errors/Defects

2011-04-30 Thread Ravi Sharma
Hi Robert, How naming the task will help me?Sorry i didnt understand it. But anyways i have named them now. In My code i have made sure that whatever exception comes from my code will not be thrown out of my controller and will just print it in log. So in what scenerio it failed and retried and al

Re: [google-appengine] Task Queue Strange Errors/Defects

2011-04-30 Thread Robert Kluin
Hi Ravi, You should name your tasks. If one fails and retries for some reason, or runs multiple times, then the tasks will start to fan-out (think fork-bomb). http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#taskName(java.lang.String)

[google-appengine] Task Queue Strange Errors/Defects

2011-04-29 Thread Ravi Sharma
Hi , I have a chained task which runs every 1 second(Still wondering how can i run it every 3 seconds) Task code is something like this try{ //Do something //read data store and update datastore }catch(Throwable ex){ logger.log(Level.Sever,ex.getMessage(),