autonomie_celery
Project description
Asynchronous tasks are executed through celery. pyramid_celery is used to integrate celery with the Pyramid related stuff. pyramid_beaker is used to cache responses.
tasks:
Asynchronous tasks called from Autonomie
scheduler:
Beat tasks, repeated along the time (like cron tasks)
Results
No result backend is used, tasks interact directly with Autonomie’s database to return datas.
Autonomie celery provides all the models that should be used to store task execution related stuff (see autonomie_celery.models).
Install
System packages
autonmie_celery needs a redis server to run
On Debian
apt-get install redis-server
On Fedora
dnf install redis-server
Python stuff
autonomie_celery should be run in the same environment as Autonomie : https://github.com/CroissanceCommune/autonomie
You may first run
workon autonomie
git clone https://github.com/CroissanceCommune/autonomie_celery.git
cd autonomie_celery
python setup.py install
cp development.ini.sample development.ini
Customize the development.ini file as needed
Start it
Launch the following command to launch the worker daemon:
celery worker -A pyramid_celery.celery_app --ini development.ini
Launch the following command to launch the beat daemon:
celery beat -A pyramid_celery.celery_app --ini development.ini
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
Hashes for autonomie_celery-4.3.8-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ee18f31d82f0a52ce73aaa7ecb8133e4242618d41d819e221b894908fcee931 |
|
MD5 | 370cd1ab02094ca1d143ac83583c33be |
|
BLAKE2-256 | e732188be5dad98030425e9cf06d3df76202c549bfc5a6ddf022e7bfb4c2313f |