I tried the same on my cron (just working on it) and it looks like it doesn't run when web2py is run in wsgi under Apache2. When I start it with python web2py works w/o a problem. Strange.
B. On 17 feb., 08:24, LightOfMooN <vladsale...@yandex.ru> wrote: > How to check, is the cron working? > If i start web2py with command line: > python web2py.py, Cron runs my function once, and after minute prints > error: cannot allocate memory > > On 16 фев, 20:19, LightOfMooN <vladsale...@yandex.ru> wrote: > > > Hello > > I have web2py installed with setup-web2py-ubuntu.sh > > It runs with Apache mod_wsgi. > > > Crontab of myapp is: > > */1 * * * * root *cron/test > > > And function: > > def test(): > > shop = db(db.shops.id==8).select().first() > > new = shop.daystodelete + 1 > > shop.update_record(daystodelete=new) > > db.commit() > > return 'done' > > test() > > > manually function works fine. But not with cron. Seems it's not > > working. > > Any ideas? Thx > >