Celery 3.0+ integration for Flask (Python 3 version)
Project description
Celery: http://celeryproject.org
Using Flask-Celery
You can easily add Celery to your flask application like this:
app.py:
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/tree/master/example.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Flask-Celery-py3-0.2.2.tar.gz
(3.1 kB
view hashes)
Built Distributions
Flask-Celery-py3-0.2.2-1.src.rpm
(11.4 kB
view hashes)
Close
Hashes for Flask-Celery-py3-0.2.2.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee2b895554f9ba799d5b139082067f138dbf90ed0c888ffdd0d466311eae3212 |
|
MD5 | 7723f9492b7a0e9a95a0673f919b43b3 |
|
BLAKE2b-256 | 280862440ff0310793359f836517122716e03753f156a57882a7d538da460049 |
Close
Hashes for Flask-Celery-py3-0.2.2-1.src.rpm
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65a11dfb2429907b2dc6d205b4e858784180947490d3df60942cb32116fafca4 |
|
MD5 | 5c615403881af3a6a7f30484830d306b |
|
BLAKE2b-256 | 69fc2ee5eb732aa827f60445d85309be93d9780126a795a123abe39a752e0f1a |
Close
Hashes for Flask-Celery-py3-0.2.2-1.noarch.rpm
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7209a327eaa47b15e1f563657ec260886e096ff4be7941469c47672edac4b797 |
|
MD5 | c4be7b06c331c2fbc1577947df173f3b |
|
BLAKE2b-256 | 3b1c78108bbe41817cb597f026adf04ebeb244d7b65d96df283230b94bcadba3 |