A Flask extension for RQ (Redis Queue).
This is a continuation of Flask-RQ more in spirit than in code. Many thanks to Matt Wright for the inspiration and providing the shoulders to stand on.
pip install Flask-RQ2To quickly start using Flask-RQ2, simply create an RQ instance:
fromflaskimportFlaskfromflask_rq2importRQapp=Flask(__name__)
rq=RQ(app)Alternatively, if you're using the application factory pattern:
fromflask_rq2importRQrq=RQ()and then later call init_app where you create your application object:
fromflaskimportFlaskdefcreate_app():
app=Flask(__name__)
fromyourapplication.jobsimportrqrq.init_app(app)
# more here..returnappFor more information see the full documentation on Read The Docs.