1. make sure no *_scheduler_*.table files are in the databases/* folder
2. make a request to create the tables.... appname/appadmin/index is fine
to check if the tables are there or not.
On Tuesday, June 24, 2014 3:33:24 PM UTC+2, Krzysztof Socha wrote:
>
> I am fighting it for some time now... I tried all the different ways to
> migrate the database so that the tables for the scheduler are created, but
> no luck - maybe someone could help...
>
> I have an existing application. Recently I decided I needed to run some
> things in the background, so I added a scheduler.py model with content like
> this:
>
> def send_mail(jar_id):
> logger.info('Mail notifications have been sent.')
>
>
>
> from gluon.scheduler import Scheduler
> scheduler = Scheduler(db)
>
> where db is defined like this in db.py model:
>
> db = DAL('mysql://xxx:xxx@localhost/xxx',pool_size=1,check_reserved=['all'
> ],migrate=True,fake_migrate=False)
>
> As soon, as I try to schedule a task, this result in an
> error: gluon.contrib.pymysql.err.ProgrammingError: (1146, u"Table
> 'xxx.scheduler_task' doesn't exist")
>
> I tried setting the fake_migrate to True, removing files in xxx/databases,
> etc. No luck. Any hint, how to make it work?
>
> Krzysztof.
>
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.