Wouldn't it better to set a cron web2py task for sending email with a sending pool?
Cron examples are exposed in the web2py book (section 4.18): Maybe the action is stuck in a controller process till it is finished and then it responds to the client. On Dec 1, 8:07 am, Francisco Costa <[email protected]> wrote: > Hi, > > I'm using web2py + nginx + uwsgi > > I have a function where I get the users database and then I email them > one by one. > > But when I run this function the page hangs for a few seconds and just > loads after all those emails been sent. > > I was wondering if this problem is possible to solve with the @spool > decorator(http://projects.unbit.it/uwsgi/wiki/Decorators), and how do > you implement it.

