I think

nocron=True

in options_std.py


On Oct 30, 3:46 pm, Fred <fre...@gmail.com> wrote:
> I've set up external cron per the v2 web2py manual and I've got web2py
> running (Version 1.68.2 (2009-10-27 13:05:52)) under mod_wsgi daemon
> mode.  It looks to me like soft cron is still running in the daemon
> process.  How do I shut it off?  The options.py file seems to have no
> effect when using wsgihandler.py as the entry point.
>
> What I'm seeing is that web2py cron is working fine when invoked as
> "external" cron via a call from /etc/crontab.  But if a web2py web
> request comes in at the same time that the external cron would run (as
> happens because of a wget call to my web2py app triggered by a cron
> job on another system), then external cron job does nothing and it
> looks like the mod_wsgi daemon instance of web2py that handles the
> request is running soft cron and failing badly as evidenced by the
> following lines in the Apache error log:
>
> [Fri Oct 30 15:40:02 2009] [error] Traceback (most recent call last):
> [Fri Oct 30 15:40:02 2009] [error]   File "web2py.py", line 16, in ?
> [Fri Oct 30 15:40:02 2009] [error]     import gluon.import_all
> [Fri Oct 30 15:40:02 2009] [error]   File "/var/local/web2py/gluon/
> import_all.py", line 104, in ?
> [Fri Oct 30 15:40:02 2009] [error]     raise ImportError, msg
> [Fri Oct 30 15:40:02 2009] [error] ImportError: Missing dependency:
> hashlib
> [Fri Oct 30 15:40:02 2009] [error] Try the following command:
> easy_install-2.4 -U hashlib
>
> My web2py is based on python2.5, since mod_wsgi is linked to /usr/
> local/lib/libpython2.5.so.1.0, so the above message about python 2.4
> is particularly confusing.  /usr/bin/python is 2.4, but I don't see
> how that would get invoked.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to