You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This extension enables you to store Celery task results using the Django ORM.
It defines a single model (django_celery_results.models.TaskResult)
used to store task results, and you can query this database table like
any other Django model.
Installing
The installation instructions for this extension is available
from the Celery documentation
Installation
You can install django-celery-results either via the Python Package Index (PyPI)
or from source.
To run the project using Docker Compose, ensure you have Docker and Docker Compose installed. Then, execute the following command in the project root directory:
$ docker-compose up --build
This will start a containerized PostgreSQL database and run the tests using tox.
Issues with mysql
If you want to run django-celery-results with MySQL, you might run into some issues.
One such issue is when you try to run python manage.py migrate django_celery_results, you might get the following error:
django.db.utils.OperationalError: (1071, 'Specified key was too long; max key length is 767 bytes')
To get around this issue, you can set:
DJANGO_CELERY_RESULTS_TASK_ID_MAX_LENGTH=191
(or any other value if any other db other than MySQL is causing similar issues.)
max_length of 191 seems to work for MySQL.
django-celery-results for enterprise
Available as part of the Tidelift Subscription.
The maintainer of django-celery-results and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainer of the exact packages you use. Learn more.