in my db1.py: db.define_table('checker', Field('name'), Field('timenow', default=request.now.time()) ) def adder(): db.checker.insert(name="gobo") from gluon.scheduler import Scheduler scheduler=Scheduler(db)
somewhere in my controller: if accept==1: task=scheduler.queue_task(adder) I intend to insert entries defined in function adder every 60 seconds but this isn't working. Am I missing something? Are all codes here correct or not? On Saturday, May 14, 2016 at 11:48:42 PM UTC+5:30, Anthony wrote: > > Always helps to show what you have tried so far, and explain what happened. > > On Saturday, May 14, 2016 at 5:38:57 AM UTC-4, Steve Joe wrote: >> >> how to write a scheduler function that will send me an email with subject >> "hello" every night at 12 am? >> > -- 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.