that is probably due to the fact that you're calling "queue_task" inside a model, so you get a new queued task EVERY request that comes in. As said by Anthony, remove the "queue_task" bit from your model and put them in a controller, else queue the task from appadmin.
On Thursday, April 3, 2014 5:17:02 PM UTC+2, Kiran Subbaraman wrote: > > Thanks for the information; and also the example around queuing the tasks > in such way that they are called in a specific time-bound sequence. I am > not trying to do that, but just focusing on adding the tasks to the > scheduler so that they get executed. Sequencing doesn't matter now. > > What I wanted to understand was the debug log output, which shows tasks > (or its worker) being "executed" every 0.5 to 1 second intervals. Does that > mean that the queue db from which they pick up the tasks is accessed every > second or so? And this is on the configuration where I haven't set the > period/repeats configuration. I guess I will try Anthony and your > suggestion to explore that option. Will report what I find in the debug log > then. > > 2014-04-01 23:36:16,642 - web2py.app.myapp - DEBUG - result: "Done: > Task A" > 2014-04-01 23:36:17,407 - web2py.app.myapp - DEBUG - new task > report:COMPLETED > 2014-04-01 23:36:17,408 - web2py.app.myapp - DEBUG - result: "Done: > Task B" > 2014-04-01 23:36:18,180 - web2py.app.myapp - DEBUG - new task > report:COMPLETED > 2014-04-01 23:36:18,180 - web2py.app.myapp - DEBUG - result: "Done: > Task C" > 2014-04-01 23:36:18,944 - web2py.app.myapp - DEBUG - new task > report:COMPLETED > 2014-04-01 23:36:18,944 - web2py.app.myapp - DEBUG - result: "Done: > Task A" > > > -- 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.