Skip to content

mzpqnxow/Flask-RQ2

This branch is up to date with rq/Flask-RQ2:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d6b4f99 · Jun 10, 2020
Jun 10, 2020
Dec 4, 2017
Nov 29, 2018
Jun 9, 2020
May 20, 2016
Jun 9, 2020
Mar 2, 2018
Mar 2, 2018
Jun 9, 2020
Sep 19, 2018
Dec 20, 2018
May 20, 2016
Dec 4, 2017
Feb 5, 2018
Dec 4, 2017
May 20, 2016
Jun 9, 2020
Jun 9, 2020

Repository files navigation

Flask-RQ2

Documentation Status Test Status Test Coverage Status CalVer - Timely Software Versioning

Resources

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.

Installation

pip install Flask-RQ2

Getting started

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

from flask import Flask
from flask_rq2 import RQ

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

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

from flask_rq2 import RQ
rq = RQ()

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

from flask import Flask

def create_app():
    app = Flask(__name__)

    from yourapplication.jobs import rq
    rq.init_app(app)

    # more here..
    return app

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

About

A Flask extension for RQ.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%