Greetings,
I am running web2py 1.76.1 from source under Ubuntu 7.10.
As far as I can tell I am using hard cron, and I have the following cron
entries:
@reboot rowdy
**applications/webacc2/cron/reboot.py
0,5,10,15,20,25,30,35,40,45,50,55 * * * * rowdy
**applications/webacc2/cron/5mins.py
0,10,20,30,40,50 * * * * rowdy
**applications/webacc2/cron/10mins.py
All the scripts do is send me an email via Python's smtplib with an
appropriate subject line.
The reboot job runs once on web2py startup - good.
The 5 minute job has so far run at 12:40, 12:42, 12:43, 12:45, 12:46,
12:48, 12:49, 12:51.
The 10 minute job has so far run at 12:40, 12:42, 12:43, 12:45, 12:46,
12:48, 12:49, 12:51.
There also appears to be a applications/admin/cron job
expire_sessions.py that seems to be configured to run every minute, but
runs with the same frequency as the jobs above i.e. sometimes every
minute, sometimes every 2 minutes..
Debug output, repeated every minute or two:
- - - - - - - - - - - - - - - -
DEBUG:root:WEB2PY CRON: Acquiring lock
INFO:root:WEB2PY CRON (hard): Application: admin executing
**applications/admin/cron/expire_sessions.py in /home/rowdy/web2py at
2010-03-03 12:48:00.009760
INFO:root:WEB2PY CRON (hard): Application: webacc2 executing
**applications/webacc2/cron/5mins.py in /home/rowdy/web2py at 2010-03-03
12:48:00.010210
INFO:root:WEB2PY CRON (hard): Application: webacc2 executing
**applications/webacc2/cron/10mins.py in /home/rowdy/web2py at
2010-03-03 12:48:00.010428
DEBUG:root:WEB2PY CRON: Releasing cron lock
DEBUG:root:WEB2PY CRON Call retruned success:
web2py Enterprise Web Framework
Created by Massimo Di Pierro, Copyright 2007-2010
Version 1.76.1 (2010-03-01 19:56:55)
Database drivers available: SQLite3, MySQL, PostgreSQL, Oracle, Interbase
DEBUG:root:WEB2PY CRON Call retruned success:
web2py Enterprise Web Framework
Created by Massimo Di Pierro, Copyright 2007-2010
Version 1.76.1 (2010-03-01 19:56:55)
Database drivers available: SQLite3, MySQL, PostgreSQL, Oracle, Interbase
DEBUG:root:WEB2PY CRON Call retruned success:
web2py Enterprise Web Framework
Created by Massimo Di Pierro, Copyright 2007-2010
Version 1.76.1 (2010-03-01 19:56:55)
Database drivers available: SQLite3, MySQL, PostgreSQL, Oracle, Interbase
- - - - - - - - - - - - - - - -
Have I made a glaring error in the crontab file, or is this unexpected
behaviour?
Also two trivial points:
1. How do you tell if you are actually running hard or soft cron (apart
from running in debug mode where the log messages say "INFO:root:WEB2PY
CRON (hard) ...")?
2. There is a spelling error in the cron message "DEBUG:root:WEB2PY CRON
Call retruned success:" - should be "returned".
Thanx
Rowdy
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.