Awesome Open Source
Awesome Open Source


.. image:: :target: :alt: Documentation Status

.. image:: :target: :alt: Test Status

.. image:: :target: :alt: Test Coverage Status

.. image:: :target: :alt: CalVer - Timely Software Versioning


  • Documentation <>_
  • Issue Tracker <>_
  • Code <>_
  • Continuous Integration <>_

.. snip

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.

.. _RQ: .. _Flask-RQ: .. _Matt Wright:


.. code-block:: console

pip install Flask-RQ2

Getting started

To quickly start using Flask-RQ2, simply create an RQ instance:

.. code-block:: python

from flask import Flask
from flask_rq2 import RQ

app = Flask(__name__)
rq = RQ(app)

Alternatively, if you're using the application factory_ pattern:

.. code-block:: python

from flask_rq2 import RQ
rq = RQ()

and then later call init_app where you create your application object:

.. code-block:: python

from flask import Flask

def create_app():
    app = Flask(__name__)

    from import rq

    # more here..
    return app

.. _application factory:

.. snap

For more information see the full documentation <>_ on Read The Docs.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
python (48,353
redis (864
queue (161
scheduler (122
jobs (64
tasks (43

Find Open Source By Browsing 7,000 Topics Across 59 Categories