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 Distributions
Flask-Celery-py3-0.2.3-1.src.rpm
(11.4 kB
view details)
File details
Details for the file Flask-Celery-py3-0.2.3.tar.gz
.
File metadata
- Download URL: Flask-Celery-py3-0.2.3.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bc2a95e1ba83f65a0b2ef5d7cc88f2af4b385c61ffef68ff4d7536c9b0629e3 |
|
MD5 | befd981150a3a459c488cb97f592be8b |
|
BLAKE2b-256 | d5e211b1e5749d07f925ace989e307e1efd5570d94a4114317271feb75b755ec |
File details
Details for the file Flask-Celery-py3-0.2.3.linux-x86_64.tar.gz
.
File metadata
- Download URL: Flask-Celery-py3-0.2.3.linux-x86_64.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5221cc209e60ba9691c50473ada5530705571b7d8c1dd0d694e34facb26820cb |
|
MD5 | 6e10c5dc62515048de32623d459b1cae |
|
BLAKE2b-256 | 3a7650c81c0dd6f1e7be4b19fa80c2c972f520e0baaf26c4060e45cf3a609438 |
File details
Details for the file Flask-Celery-py3-0.2.3-1.src.rpm
.
File metadata
- Download URL: Flask-Celery-py3-0.2.3-1.src.rpm
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 714c69672c9abf6e1f1fe291f7d7cd9631dd5ba307fcc489e60b684c4da782c4 |
|
MD5 | b3fee179d17c60fe22c9f88e4d294c5a |
|
BLAKE2b-256 | 259ae62a50ae41a0a79b2cd63467027ddd075c2f749004e2a76ce0b4337e2f43 |
File details
Details for the file Flask-Celery-py3-0.2.3-1.noarch.rpm
.
File metadata
- Download URL: Flask-Celery-py3-0.2.3-1.noarch.rpm
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 309145b1f153971c211aba43fb488808cb71a35ea5f48ab3d349244d2b26c134 |
|
MD5 | 8f9ba06ef2714886c1fab73f8ebeec9a |
|
BLAKE2b-256 | 0fdc37121ea08b261473e388927abae8f329d5ee766346a45bc29ea2aa154bc0 |