Hi,

I have recently start to use the scheduler module which looks great,
but when i try to use a simple example simply doesn't works, any
additional works requires?

created a scheduler.py inside models which contains

-------------------------------------------------------
from gluon.scheduler import Scheduler

def task_add(a,b):
    print "MAMAMA"
    return a+b

scheduler = Scheduler(db)

scheduler.queue_task(task_add,pvars=dict(a=1,b=2))
-----------------------------------------------------------------------------

And run with:

python2 Devel/web2py/web2py.py -K smart_media_campaign

Simply doesn't prints the "MAMAMA" message on the console, how can i
sure it works?

Is there anything wrong?

Regards,!

Saludos,

--------------------------------
Alfonso de la Guarda
Twitter: @alfonsodg
Redes sociales: alfonsodg
   Telef. 991935157
1024D/B23B24A4
5469 ED92 75A3 BBDB FD6B  58A5 54A1 851D B23B 24A4

-- 

--- 
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.

Reply via email to