Celery 3.0+ integration for Flask (Python 3 version)
You can easily add Celery to your flask application like this:
from flask_celery import Celery celery = Celery() def create_app(): app = Flask(__name__) celery.init_app(app) return app @celery.task 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 https://github.com/taogeT/flask-celery .
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|Flask-Celery-py3-0.2.4.linux-x86_64.tar.gz (3.3 kB) Copy SHA256 Checksum SHA256||any||Dumb Binary||Jul 25, 2016|
|Flask-Celery-py3-0.2.4.tar.gz (3.2 kB) Copy SHA256 Checksum SHA256||–||Source||Jul 25, 2016|