[web2py] Re: Server fails every 3 hour

2010-08-30 Thread howesc
I've not done much heavy lifting with the taskqueue, but when i have long running tasks i have broken them up into chunks that run in 30 seconds or less. i call the task with something like: for user in db(db.auth_user.id>0).select(): for question in db(db.question.id>0).select():

Re: [web2py] Re: Server fails every 3 hour

2010-08-28 Thread Michael Ellis
At the moment, I'm mostly interested in knowing how to use taskqueue to set up a background email notification system. My web2py app is for group collaboration and there are situations where all members of a group needed to be notified of changes. The taskqueue API seems straightforward, but it w

[web2py] Re: Server fails every 3 hour

2010-08-28 Thread Kevin
Yeah, the gae cron is a lot different than the web2py cron (which is based on traditional crons), because web2py supports any process or internal controller, while GAE only support calling relative URLs in their cron. In any case, it'd be nice to have a compatibility layer -- if you don't need any

[web2py] Re: Server fails every 3 hour

2010-08-28 Thread mdipierro
No but cron does not work on gae either. On gae you can use taskque. On Aug 28, 7:25 am, Michael Ellis wrote: > Massimo, can the technique described in the book be used on GAE? > Thx, > Mike > > On Aug 27, 10:23 pm, Bruno Rocha wrote: > > > Thanks Massimo. > > , > > > 2010/8/27 mdipierro > > >

[web2py] Re: Server fails every 3 hour

2010-08-28 Thread Michael Ellis
Massimo, can the technique described in the book be used on GAE? Thx, Mike On Aug 27, 10:23 pm, Bruno Rocha wrote: > Thanks Massimo. > , > > 2010/8/27 mdipierro > > > > > > > Run the web server with -N (no cron) and run a separate backrgound > > process for cron. Anyway, there is no way to contr

Re: [web2py] Re: Server fails every 3 hour

2010-08-27 Thread Bruno Rocha
Thanks Massimo. , 2010/8/27 mdipierro > Run the web server with -N (no cron) and run a separate backrgound > process for cron. Anyway, there is no way to control how much memory > cron consumes if a cron task takes longer than expected. It is safer > not to use cron (-N) and use this instead: >

[web2py] Re: Server fails every 3 hour

2010-08-27 Thread mdipierro
Run the web server with -N (no cron) and run a separate backrgound process for cron. Anyway, there is no way to control how much memory cron consumes if a cron task takes longer than expected. It is safer not to use cron (-N) and use this instead: http://www.web2py.com/book/default/chapter/04#Back