updateMap instead of updateMaps in queue_task... maybe I need to go to bed.. :P
thanks a lot and sorry for the inconvenience On Wednesday, September 25, 2013 2:59:02 AM UTC+3, Antonis Konstantinos Tzorvas wrote: > > ok, it was some missing imports, so now i can run my function from the > appadmin, but trying to run it with scheduler.queue_task and nothing happens > > scheduler = Scheduler(db, dict(updateCharts=updateCharts, > updateMaps=updateMap)) #in models/scheduler.py > > scheduler.queue_task(updateMap) #inside a function in > controllers/example.py -- calling the function with ajax > isn't that the way to add tasks from controllers/modules? > > On Monday, September 23, 2013 11:44:08 PM UTC+3, Tim Richardson wrote: >> >> You need to debug the scheduled task. Add debug code so that the output >> captured is useful. The scheduler itself is unlikely to be the problem I >> think; it just sets up execution of your task. > > -- 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.