Nice! Is it working? Is there an example of application? Thanks!
Tito On Mon, Dec 31, 2012 at 3:21 AM, Alec Taylor <[email protected]> wrote: > On Mon, Dec 31, 2012 at 11:37 AM, Bruno Rocha <[email protected]> > wrote: > > DONE!!! > > > > 1. create a file called web2py-rq.py > > > > #!/usr/bin/env python > > import sys > > from rq import Queue, Connection, Worker > > > > # Preload libraries > > #import library_that_you_want_preloaded > > > > # Provide queue names to listen to as arguments to this script, > > # similar to rqworker > > with Connection(): > > qs = map(Queue, sys.argv[1:]) or [Queue()] > > w = Worker(qs) > > w.work() > > > > 2. start the worker in web2py context > > python web2py.py -S yourapp -M -R /path/to/web2py-rq.py > > > > > > Now it is easiest to send delayed messages! > > > > I will create a slice and will send the script to be included in contrib. > > Awesome; can hardly wait :D > > -- > > > > -- Linux User #387870 .........____ .... _/_õ|__| ..º[ .-.___.-._| . . . . .__( o)__( o).:_______ -- --- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

