tried with python-rq before and as much as I like it (if you can bear the 
limitations) I can't get any function that is defined in models to be 
executed. 

Guess it's something related to web2py's execution environment...... if 
you're going to use mail.send then it's ok, but what if you must enqueue a 
function defined in models ?

import time
def demo1(*args, **vars):
    time.sleep(15)
    print 'args', args
    print 'vars', vars
    return dict(args=args, vars=vars)



it gets serialized as __restricted__.demo1, and when loaded into the worker 
it obviously goes into exception. Did you find an alternative to make that 
work ?

On Monday, December 31, 2012 7:16:43 AM UTC+1, rochacbruno wrote:
>
> The monitor tool runs on Flask I am sure it will be easy to write a web2py 
> version of this. Maybe as a plugin. 
> Em 31/12/2012 00:09, "Bruno Rocha" <[email protected] <javascript:>> 
> escreveu:
>
>>
>> Running delayed jobs with web2py and Redis Queue:
>>
>> http://rochacbruno.com.br/web2py-and-redis-queue/
>>
>> Bruno.
>>
>

-- 



Reply via email to