Skip to main content

Celery 3.0+ integration for Flask (Python 3 version)

Project description


Using Flask-Celery

You can easily add Celery to your flask application like this:

from flask_celery import Celery

celery = Celery()

def create_app():
    app = Flask(__name__)


    return app

def add(x, y):
    return x + y

To start the worker you can then launch the celery worker command by pointing to your celery app instance:

$ celery -A app:celery worker -l info

If your flask application has complex condition, you can refer to the example .

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for Flask-Celery-py3, version 0.2.4
Filename, size File type Python version Upload date Hashes
Filename, size Flask-Celery-py3-0.2.4.linux-x86_64.tar.gz (3.3 kB) File type Dumb Binary Python version any Upload date Hashes View hashes
Filename, size Flask-Celery-py3-0.2.4.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page