skip to navigation
skip to content

leonardo-celery 0.1.2

Background workers for Leonardo CMS

This module provide worker for hard work around periodical syncing and updating caches, sending emails or whatever you need do asynchronously.


pip install leonardo-celery
pip install django-leonardo[celery]


BROKER_URL = 'redis://localhost:6379/0'

BROKER_URL = 'amqp://user:password@'

Set custom scheduler and result backend

CELERY_RESULT_BACKEND = 'djcelery.backends.database:DatabaseBackend'

CELERYBEAT_SCHEDULER = "djcelery.schedulers.DatabaseScheduler"

Start worker

python celery worker -B -E

Syncing state

For syncing state to databse run celerycam

python celerycam

Tasks are discovered by standard mechanism:

app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)

Use smart caching

Use cacheback jobs for fetching data asynchronously.

pip install leonardo-celery[cacheback]

Define your jobs. More about Jobs

File Type Py Version Uploaded on Size
leonardo-celery-0.1.2.tar.gz (md5) Source 2016-04-08 3KB