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:


    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 :)


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