Sorry wrong list!

On Tue, Sep 3, 2013 at 7:57 AM, Alfonso de la Guarda
<[email protected]> wrote:
> 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?



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 
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to