Kind off puzzled myself. I can confirm that the windows distrib runs softcron, BUT, running it from the command line, from sources, DOES result in default hardcron. I'm not sure what the difference is between the distribution and source 'modes' are but apparently the two are not the same for some reason.
On Feb 24, 6:25 am, Iceberg <iceb...@21cn.com> wrote: > On Feb23, 0:19am, Iceberg <iceb...@21cn.com> wrote: > > > > > On Feb22, 8:37pm, AchipA <attila.cs...@gmail.com> wrote: > > > I think I know what's causing the issue, try the following as your > > > web2py.py instead of the original one: > > > > #!/usr/bin/python > > > # -*- coding: utf-8 -*- > > > > import os > > > import sys > > > > path = os.path.dirname(os.path.abspath(__file__)) > > > if not path in sys.path: > > > sys.path.append(path) > > > os.chdir(path) > > > > import gluon.import_all > > > from gluon.widget import start > > > > # Starts cron daemon > > > cron = gluon.contrib.cron.hardcron() > > > cron.start() > > > > # Start Web2py ! > > > start() > > > Hi Achipa, when comparing your patch with the web2py.py of v1.56.3, I > > noticed the current web2py.py is as below: > > > from gluon.contrib.cron import hardcron > > # Starts cron daemon > > cron = hardcron() > > cron.start() > > > I don't really understand why they are different. Must be a very > > tricky issue??? :-/ But if you insist, OK, I don't have a python 2.5 > > machine at hand, will check this next week. On the other hand, since > > you are quite confident, maybe Massimo can include it into the coming > > soon 1.56.4 :-) > > Kindly Massimo already combined Achipa's patch into web2py 1.56.4 (at > least I saw that code in its source distribution package), so I test > its windows distribution package just now, and found that .... it is > still a softcron rather than a hardcron, sad but true. :-( Any other > suggestions, Achipa? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---