[web2py] Re: Crontab with WSGI
Do you have those spaces in there? The cron line should be: 55 07 * * * root *default/limpiar_eventos Are you able to run the function in your browser? http://127.0.0.1:8000/myapp/default/limpiar_eventos
[web2py] Re: Crontab with WSGI
http://127.0.0.1:8000/myapp/default/limpiar_eventos work fine in cherokee web server, and crontab work fine in web2py´s server but not in cherokee web server. On 13 mayo, 10:08, pbreit wrote: > Do you have those spaces in there? The cron line should be: > > 55 07 * * * root *default/limpiar_eventos > > Are you able to run the function in your browser? > > http://127.0.0.1:8000/myapp/default/limpiar_eventos
[web2py] Re: Crontab with WSGI
I doubt it's a Cherokee problem. Do you have a crontab set up on your server? For example, this is what I have in my unix crontab (not web2py crontab). Cron is still a little confusing to me. MAILTO=c...@myserver.com 0-59/1 * * * * cd /var/web2py && python web2py.py -C -D 1 > /dev/null 2>&1
[web2py] Re: Crontab with WSGI
No , only in web2py, not in cherokee. Where I write this code? 0-59/1 * * * * cd /var/web2py && python web2py.py -C -D 1 > /dev/null 2>&1 On 13 mayo, 15:02, pbreit wrote: > I doubt it's a Cherokee problem. Do you have a crontab set up on your > server? > > For example, this is what I have in my unix crontab (not web2py crontab). > Cron is still a little confusing to me. > > MAILTO=c...@myserver.com > > 0-59/1 * * * * cd /var/web2py && python web2py.py -C -D 1 > /dev/null 2>&1
[web2py] Re: Crontab with WSGI
I don't really understand how the web2py cron an "external cron" work together. I have a crontab in my application cron folder that appears to run when I'm running web2py on my Mac. But on my server, I have a regular crontab file (set up with "sudo -u www-data crontab -e") that executes web2py to run the crons. http://web2py.com/book/default/chapter/04?search=crontab#Cron It may be that when running Web2py with WSGI, web2py internal cron is disabled. I jsut don't really know for sure unfortunately.
[web2py] Re: Crontab with WSGI
Actually I'm looking at my cron right now and am pretty confused. Does anyone know how external cron works exactly? In my /etc/crontab, I have: 0-59/1 * * * * cd /var/web2py && python web2py.py -C -D 1 > /dev/null 2>&1 In /var/web2py/applications/init/cron/crontab, I have: */6 * * * * root *cron/release_pending_orders */1 * * * * root *cron/expire_items */1 * * * * root *cron/mail_queue */1 * * * * root *cron/email_watchlist 0 2 * * * root *cron/google_feed 30 2 * * * root *cron/bing_feed My setup is Nginx + uWSGI + Ubuntu The */1 jobs seem to be running but I'm not sure the other ones are.
[web2py] Re: Crontab with WSGI
Now I am wondering if I should just have crontab wget my cron functions into dev/null? 0-59/1 * * * * wget http://localhost/myapp/cron/cronjob > /dev/null 2>&1 Seems kinda lo-tech. Will this cause any problems?