If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!


  • 0
    franciss  7 years ago

    Hi Bruno. I'm too newbie on web2py so I don't know if this question makes sense but... here it goes anyway :)

     

    On both cases of this recipe, you are creating the queue.py under models/, why?

    Shouln't this be stored in modules/? (something like modules/redis/queue.py?)

     

    I'm asking this question after reading this:

    https://groups.google.com/forum/#!msg/web2py/js0VAKK6Dlw/CJ46I-0wT0wJ

    in particular "models are executed at every request, so a celery instance defined in models continues to instantiate new connections to Redis" maybe the same problem could happen here with rq.

    Cheers and thanks for share your knowledge :)

    Franc

Commented on:

RQ (Redis Queue) is a simple Python library for queueing jobs and processing them in the background with workers. It is backed by Redis and it is designed to have a low barrier to entry. It should be integrated in your web(2py) stack easily.

Hosting graciously provided by:
Python Anywhere