Massimo,
I ran a second test, this time putting back in my previous migrate = True
change so that the database tables would get created. Then I did a second
run that looked somewhat more promising but still ultimately did not work.
Again it started up a bunch of new processes - after the first couple I hit
ctrl+c and things started to look more like there were working. At least now
the scheduler was definitely checking for jobs and trying to run them (as
before they don't actually get run). After it had spotted and said it was
running the task web2py said it was loading up a few more times. At this
point I started hitting ctrl+c to try to stop things - and I had to hit
ctrl+c a bunch of times to finally kill everything off, it definitely
doesn't stop gracefully. Anyway, below is the first bit of output up until
I started hitting ctrl+c like crazy (window's console won't let you have the
full output so I can't show you everything, but I doubt pages worth of
Keyboard Interrupt tracebacks are that helpful).
Checking in the database, it does look like perhaps my scheduled demo1 task
did get run 3 times as requested. The first two said status STOPPED and the
third said RUNNING. I'm assuming if they had really run correctly it would
have said COMPLETED and have some output.
~Brian
*Console Output*
C:\Users\Brian\Documents\development\web2py\google hg repo\trunk>python
web2py.p
y -K scheduler
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.98.2 (2011-09-03 22:19:50)
Database drivers available: SQLite3, pymysql, MSSQL/DB2, mongoDB
starting scheduler for "scheduler"...
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.98.2 (2011-09-03 22:19:50)
Database drivers available: SQLite3, pymysql, MSSQL/DB2, mongoDB
starting scheduler for "scheduler"...
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.98.2 (2011-09-03 22:19:50)
Database drivers available: SQLite3, pymysql, MSSQL/DB2, mongoDB
starting scheduler for "scheduler"...
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.98.2 (2011-09-03 22:19:50)
Database drivers available: SQLite3, pymysql, MSSQL/DB2, mongoDB
starting scheduler for "scheduler"...
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.98.2 (2011-09-03 22:19:50)
Database drivers available: SQLite3, pymysql, MSSQL/DB2, mongoDB
starting scheduler for "scheduler"...
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.98.2 (2011-09-03 22:19:50)
Database drivers available: SQLite3, pymysql, MSSQL/DB2, mongoDB
starting scheduler for "scheduler"...
WARNING:web2py:unable to import Rocket
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.98.2 (2011-09-03 22:19:50)
Database drivers available: SQLite3, pymysql, MSSQL/DB2, mongoDB
starting scheduler for "scheduler"...
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.98.2 (2011-09-03 22:19:50)
Database drivers available: SQLite3, pymysql, MSSQL/DB2, mongoDB
starting scheduler for "scheduler"...
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.98.2 (2011-09-03 22:19:50)
Database drivers available: SQLite3, pymysql, MSSQL/DB2, mongoDB
starting scheduler for "scheduler"...
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.98.2 (2011-09-03 22:19:50)
Database drivers available: SQLite3, pymysql, MSSQL/DB2, mongoDB
starting scheduler for "scheduler"...
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.98.2 (2011-09-03 22:19:50)
Database drivers available: SQLite3, pymysql, MSSQL/DB2, mongoDB
starting scheduler for "scheduler"...
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.98.2 (2011-09-03 22:19:50)
Database drivers available: SQLite3, pymysql, MSSQL/DB2, mongoDB
starting scheduler for "scheduler"...
No handlers could be found for logger "web2py"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Python26\lib\multiprocessing\forking.py", line 341, in main
prepare(preparation_data)
File "C:\Python26\lib\multiprocessing\forking.py", line 456, in prepare
'__parents_main__', file, path_name, etc
File "C:\Users\Brian\Documents\development\web2py\google hg
repo\trunk\web2py.
py", line 16, in <module>
import gluon.widget
File "C:\Users\Brian\Documents\development\web2py\google hg
repo\trunk\gluon\_
_init__.py", line 15, in <module>
from globals import current
File "C:\Users\Brian\Documents\development\web2py\google hg
repo\trunk\gluon\g
lobals.py", line 18, in <module>
from streamer import streamer, stream_file_or_304_or_206,
DEFAULT_CHUNK_SIZE
File "C:\Users\Brian\Documents\development\web2py\google hg
repo\trunk\gluon\s
treamer.py", line 15, in <module>
import rewrite
File "C:\Users\Brian\Documents\development\web2py\google hg
repo\trunk\gluon\r
ewrite.py", line 24, in <module>
import urllib
File "C:\Python26\lib\urllib.py", line 23, in <module>
"""
KeyboardInterrupt
DEBUG:root:defining tables (migrate=True)
DEBUG:root:thread building own DAL object
DEBUG:root:looping...
DEBUG:root:defining tables (migrate=False)
DEBUG:root: grabbing all queued tasks
DEBUG:root:........recording heartbeat
DEBUG:root: grabbed 1 tasks
DEBUG:root: releasing all but one (running)
DEBUG:root: new scheduler_run record
INFO:root:new task 1 "demo1" scheduler.demo1
DEBUG:root: new task allocated: scheduler.demo1
DEBUG:root: task starting
DEBUG:root: freeing workers that have not sent heartbeat
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.98.2 (2011-09-03 22:19:50)
Database drivers available: SQLite3, pymysql, MSSQL/DB2, mongoDB
starting scheduler for "scheduler"...
DEBUG:root:........recording heartbeat
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.98.2 (2011-09-03 22:19:50)
Database drivers available: SQLite3, pymysql, MSSQL/DB2, mongoDB
starting scheduler for "scheduler"...
DEBUG:root:........recording heartbeat
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.98.2 (2011-09-03 22:19:50)
Database drivers available: SQLite3, pymysql, MSSQL/DB2, mongoDB
starting scheduler for "scheduler"...
<At this point I just started hitting ctrl+c over and over to kill it off.>