did you recently upgrade to 2.9.11 without letting scheduler recreating the 
tables ? tables definitions have changed, and you need to let web2py adjust 
(i.e. look for migrate_enabled=False in your DAL call)

On Tuesday, October 21, 2014 10:03:39 PM UTC+2, José Leite wrote:
>
> Hello,
>
> I just started trying to use web2py scheduler to lauch tasks like DB 
> updates or sending emails.
>
> I am using windows7 and web2py 2.9.11.
> I just added the following  code to my project for a simple test:
>
> MODELS
> from gluon.scheduler import Scheduler
> from test_scheduler import Addition
>
> scheduler = Scheduler(db, tasks=dict(add=Addition))
>
> IN A CONTROLLER
> # Queue scheduled task
> result = scheduler.queue_task('add',pvars=dict(a=1,b=2))
>
> when I start the worker with the command:
>
> C:\web2py>python web2py.py -K Project
>
> I get the following error:
>
> web2py Web Framework
> Created by Massimo Di Pierro, Copyright 2007-2014
> Version 2.9.11-stable+timestamp.2014.09.15.23.35.11
> Database drivers available: SQLite(sqlite3), MySQL(pymysql), 
> PostgreSQL(pg8000),
>  MSSQL(pyodbc), DB2(pyodbc), Teradata(pyodbc), Ingres(pyodbc), 
> IMAP(imaplib)
> starting single-scheduler for "Project"...
> 2014-10-21 20:42:12,234 - web2py.scheduler.Hugo-TOSH#22108 - ERROR - Error 
> retrieving status
> 2014-10-21 20:42:15,239 - web2py.scheduler.Hugo-TOSH#22108 - ERROR - Error 
> retrieving status
> 2014-10-21 20:42:18,242 - web2py.scheduler.Hugo-TOSH#22108 - ERROR - Error 
> retrieving status
>
> I am not using anything like:
>
> db._common_fields.append(standard_fields)
>
> so, anyone knows what may be the problem?
>
> Thanks!
>
>

-- 
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