yes, followed your step, i understood the logic flow of the web2py 
scheduler and made it work, thank you so much, simone for the pointers. 
just wondering, the precision for second is not exact on created_on, tested 
using period = 5 and period = 60
here is the steps i took :
*cmd*
cd C:\web2py\applications
xcopy welcome test /s /e /h
D

*cmd*
notepad C:\web2py\applications\test\models\db_wizard_0.py

db.define_table('asdf',
    Field('asdf'),
    auth.signature )

*cmd*
notepad C:\web2py\applications\test\models\scheduler.py
from gluon.scheduler import Scheduler

def demo1():
    db.asdf.insert(asdf = 'asdf')
    db.commit()

mysched = Scheduler(db, tasks = dict(demo1 = demo1) )

*cmd*
notepad C:\web2py\applications\test\controlelrs\test.py
def queue_task():
    #mysched.queue_task('demo1')
    mysched.queue_task('demo1', prevent_drift = True, repeats = 0, period = 
5)

*cmd*
cd C:\web2py
python web2py.py -a a

*web browser*
http://127.0.0.1:8000/test/test/queue_task

http://127.0.0.1:8000/test/appadmin/select/db?query=db.scheduler_task.id%3E0

*cmd*
cd C:\web2py
python web2py.py -K test

*web browser*
http://127.0.0.1:8000/test/appadmin/select/db?query=db.scheduler_worker.id%3E0

http://127.0.0.1:8000/test/appadmin/select/db?query=db.scheduler_task.id%3E0

http://127.0.0.1:8000/test/appadmin/select/db?query=db.asdf.id%3E0

thanks and best regards,
stifan

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to