On Feb 21, 6:28 pm, Iceberg <iceb...@21cn.com> wrote: > Then, when talking about the hardcron, I assume you told us that: > 1. "softcron: cron routines are checked after page content has been > served, does not guarantee execution precision"
Correct. > 2. On the contrary, hardcron runs in a separate thread, and guarantee > execution precision. Is this true? True. > Now I am using web2py_win.zip, 1.56.3, without any other web server, > so I think it qualifies for a hardcron mode, am I correct? But I tried > and found that my cron jobs are still in softcron mode, a.k.a. "cron > routines are checked after page content has been served, does not > guarantee execution precision". > Did I miss something? Thanks in advance. If you run web2py with "python web2py.py" that should be hard cron. If you specified no additional switches or changed it in code and it still runs as soft-cron then it's a bug :) The easiest way to check this is to run web2py with "python web2py.py -D 1" to enable debug mode, it will output more info about the cron task execution. Also, can you tell me what OS you are using and if you are running web2py from source or from a distribution bundle ? On Feb 21, 9:12 pm, David Marko <dma...@tiscali.cz> wrote: > I would also appreciate some working example/appliance for using > *cron. Its very usefull thing!!! web2py comes with an example (cleaning sessions), see applications/ admin/cron ! Do you think additional examples should be put there, or that maybe new applications should include a template commented out crontab ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---