Skip to content

Kombu transport using the Django database as a message store.

Notifications You must be signed in to change notification settings

2ndquadrant-it/kombu-django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Celery Django-based backend

This application starts from the work that have been dismissed from the Kombu project (from this commit), and keeps it updated for the new releases of Django.

To use this backend, you need to list kombu_django from your list of installed apps:

INSTALLED_APPS = [
    ...
    'kombu_django',
    ...
]

and then choose the django broker backend:

CELERY_BROKER_URL = 'django://'

Using the database as a task result storage

Since you are already using a database as a broker, you can also use it to store the results of the tasks. To do this, you must list django_celery_results in the installed applications:

INSTALLED_APPS = [
    ...
    'django_celery_results',
    ...
]

and then activate the new result backend:

CELERY_RESULT_BACKEND = 'django-db'

Migrations

Remember to execute the migrations to create the missing tables for the broker and for the tasks result:

$ ./manage.py migrate
[...]

About

Kombu transport using the Django database as a message store.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages