Hi, I have a model file called scheduler.py which has
from gluon.scheduler import Scheduler def messageTask(): mail.send(to=['ranjith2...@gmail.com'],subject='hello', message='hi there') return scheduler = Scheduler(db,tasks=dict(messageTask=messageTask)) I added an entry in scheduler_task table Application Name:Task Name:Group Name:Status:QUEUEDRUNNINGCOMPLETEDFAILED TIMEOUTSTOPPEDEXPIREDFunction Name:messageTaskUuid:Args:Vars:Enabled:Start Time:Next Run Time:Stop Time:Repeats:0=unlimitedRetry Failed:-1=unlimited Period:secondsTimeout:secondsSync Output:update output every n sec: 0=neverTimes Run:Times Failed:Last Run Time:Assigned Worker Name: I have also added an entry in scheulder_worker table Id:1Worker Name:First Heartbeat:Last Heartbeat:Status:ACTIVEPICKDISABLED TERMINATEKILLSTOP_TASKIs Ticker:Group Names: - + - Check to delete: But the the function is not getting scheduled. Am I missing something here? Please help!!!! scheduler_run.task_id<http://127.0.0.1:8000/schoolApp/appadmin/select/db/scheduler_run?query=db.scheduler_run.task_id%3D%3D25> -- 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/groups/opt_out.