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