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():
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
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
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
>
> >
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
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:
>
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
7 matches
Mail list logo