Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
autonomie_celery-4.1.0.tar.gz (40.8 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page