hi
i have an application for send sms in certain time . i use pycharm
(web2py) for writing this program and web2py scheduler . i can see the
records of tasks in db.scheduler_task but no records in scheduler_run and
scheduler_worker tables and also the task will execute befor insert in
table .
Here is part of my codes in default.py:
def index():
t=mysched.queue_task( demo() ,start_time=request.now+ timed(seconds=60) )
q=mysched.task_status(t.id , output=True)
and the code in scheduler.py in Models folder:
from gluon.scheduler import Scheduler
import time
def demo():
#send sms in start time
return None
mysched = Scheduler(db, max_empty_runs=10 , discard_results=False)
######################
Could any one help me figure out 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 [email protected].
For more options, visit https://groups.google.com/d/optout.