I tried the following with the test server and it works
In crontab:
55 07 * * * root * default / limpiar_eventos
In the default controller
def limpiar_eventos ():
totalFilas = db (db.auth_event.id> 0). count ()
totalFilas if> 30:
for row in db (db.auth_event.id> 0). select (limitby = (0,
2)):
db (db.auth_event.id == fila.id.) delete ()
db.commit ()
But this, in Cherokee web server with WSGI does not work.
why?
- [web2py] Crontab with WSGI luifran
- [web2py] Re: Crontab with WSGI pbreit
- [web2py] Re: Crontab with WSGI luifran
- [web2py] Re: Crontab with WSGI pbreit
- [web2py] Re: Crontab with WSGI luifran
- [web2py] Re: Crontab with WSGI pbreit

