Hi,

I see different purposes for the 2:

- cron tasks are the tasks I always want to do for sure
- tasks via API are tasks that I schedule programmatically when needed
and triggered by event that I can't predict in advance.

I see personally 2 other purposes for API tasks:
  a) when I run a task and it comes close to the 30s limit, I pause
it, serialize its context and schedule a task with this context. When
the task starts, it's in fact a restart with another 30s credit for
running
  b) I also tasks in context of transactions if I want to be sure that
the action of the task is done (i.e datastore writes) even if the
transactions fails  -> for example, store errors in datastore for
later analysis for a failing transaction / program, etc.

regards
didier


On Oct 25, 6:23 am, Vik <vik....@gmail.com> wrote:
> Hie Thanks for the response.
>
> I am confused a bit. If cron job does the scheduling then what Task Queue
> does?
>
> Thankx and Regards
>
> Vik
> Founderwww.sakshum.comwww.sakshum.blogspot.com
>
> On Mon, Oct 25, 2010 at 8:51 AM, Didier Durand <durand.did...@gmail.com>wrote:
>
> > Hi Vik,
>
> > Tasks scheduled via cron.xml is the way I would go:
> >http://code.google.com/appengine/docs/java/config/cron.html
>
> > I would schedule a task every minute, make a query on the deadline for
> > donors and then do what has to be done.
>
> > didier
>
> > On Oct 24, 7:11 pm, Vik <vik....@gmail.com> wrote:
> > > Hie Guys
>
> > > Our application manages a list of blood donors. Time to time these blood
> > > donors are unreachable so the administrators can mark such blood donors
> > as
> > > inactive.
>
> > > However, these blood donors should be active again after 1 day
> > > automatically. How should we achieve this? ?In regular J2EE apis we can
> > > write scheduler classes to do the same.
> > > What is the option in GAE? Are there any limitations?
>
> > > I went through a bit and feel like task queues are the way. But I am not
> > > sure? If yes then for above scenario how should it be done?
>
> > > Thankx and Regards
>
> > > Vik
> > > Founderwww.sakshum.comwww.sakshum.blogspot.com
>
> > --
> > 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-j...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine-java?hl=en.

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

Reply via email to