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 .
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
Built Distribution
File details
Details for the file Flask-Celery-py3-0.2.4.tar.gz
.
File metadata
- Download URL: Flask-Celery-py3-0.2.4.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be9c0b1282799ae6f15bcf701f0c2df8f98dcadcacb1d83e18c9536341903e60 |
|
MD5 | e80641b6f5f1a2823ee9e822ac963a27 |
|
BLAKE2b-256 | e0cba36a848d11462ed456d9c2d80232d58ac5e1c57817c0dca4b8116cd6fbcc |
File details
Details for the file Flask-Celery-py3-0.2.4.linux-x86_64.tar.gz
.
File metadata
- Download URL: Flask-Celery-py3-0.2.4.linux-x86_64.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a31b161d00b199087f61dd6280c233e97aa7916410dce303c23dcd9cf34ab56c |
|
MD5 | e8b569488788ea8d16f61e1edb361e41 |
|
BLAKE2b-256 | 8a23ba736c4c4768ab78ae70ba2a95efc31808b168b95c28ad1574e0da83004f |