I'm just reading through the docs. *Cron support in the development server*
When using the Python SDK, the dev_appserver has an admin interface that allows you to view cron jobs at http://localhost:8000/cron. The development server doesn't automatically run your cron jobs. You can use your local desktop's cron or scheduled tasks interface to trigger the URLs of your jobs with curl <http://curl.haxx.se/> or a similar tool. Are you on the dev server ? On Tuesday, August 20, 2013 10:00:41 PM UTC+2, jjg0 wrote: > > Still not getting this. > The gae docs says 'A cron.yaml file in the root directory of your > application (alongside app.yaml) configures scheduled tasks for your > Python application.' > so I made a cron.yaml file in my root directory in /web2py folder right > where the app.yaml file is. Looking at their example I set my cron.yaml > file to: > > cron: > - description: test > url: /default/test > schedule: every 1 minutes > > where default/test is a function that adds an entry to a database. I can > open my browser and go to myApp/default/test and see the entry gets added, > so it's safe to say the function works, however the cron.yaml file doesn't > seem to be doing anything. I would expect this to be called every minute > but nothing happens. What am I missing? > > > > On Tuesday, August 20, 2013 2:31:04 PM UTC-4, Niphlod wrote: >> >> Scheduler in GAE is not allowed. I'd go for their cron or their task >> queue... >> >> https://developers.google.com/appengine/docs/python/config/cron?hl=it&csw=1 >> >> https://developers.google.com/appengine/docs/python/taskqueue/?hl=it&csw=1#Using_Task_Queues_in_Python >> There's also a presentation that explains a little bit what they are >> >> http://dl.google.com/io/2009/pres/Th_1045_Offline_Processing_On_App_Engine_A_Look_Ahead.pdf >> >> On Tuesday, August 20, 2013 7:54:10 PM UTC+2, jjg0 wrote: >>> >>> nothing? >>> >>> On Monday, August 19, 2013 7:49:03 AM UTC-4, jjg0 wrote: >>>> >>>> I was referring to google app engine... >>>> The book hasn't been very helpful >>>> >>>> On Friday, August 16, 2013 6:05:41 PM UTC-4, Massimo Di Pierro wrote: >>>>> >>>>> It all depends on how you run web2py. If you run it with web2py.py >>>>> thank you can pass a command line option to enable cron and then you need >>>>> a >>>>> applications/app/cron/crontab file. if you run web2py with apache or >>>>> other >>>>> server via fcgi or wsgi, than you should use the scheduler instead. This >>>>> is >>>>> described in some detail in the book. >>>>> >>>>> >>>>> On Friday, 16 August 2013 11:59:27 UTC-5, jjg0 wrote: >>>>>> >>>>>> I asked this in another topic but did not get any answers:( >>>>>> >>>>>> I have a table I want to update on a weekly basis and I'm trying to >>>>>> find a way to have this run automatically. I've looked around and it >>>>>> seems >>>>>> like I can use cron for this. I am using google app engine and their >>>>>> docs >>>>>> on cron are different than whats in the web2py book. After reading both >>>>>> I >>>>>> am still lost as to what I need to do. >>>>>> >>>>>> Should I create a cron.yaml file in the web2py folder, or do I need >>>>>> to use a crontab file in the applications \cron\crontab folder? >>>>>> Is a crontab something completely different? >>>>>> How do I turn cron on for gae? The book says cron is off and it wants >>>>>> to use some experimental schedulers instead. >>>>>> Are there any good examples or tutorials on how to do this? I see a >>>>>> contrab.example file comes with web2py, but it is empty. >>>>>> >>>>>> Thanks >>>>>> >>>>> -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.