Celery result backends for Django.
Project description
- Version:
2.3.1
- Web:
- Download:
- Source:
- Keywords:
django, celery, database, results
About
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 install using pip,:
$ pip install -U django-celery-results
Downloading and installing from source
Download the latest version of django-celery-results from http://pypi.python.org/pypi/django-celery-results
You can install it by doing the following,:
$ tar xvfz django-celery-results-0.0.0.tar.gz $ cd django-celery-results-0.0.0 $ python setup.py build # python setup.py install
The last command must be executed as a privileged user if you are not currently using a virtualenv.
Using the development version
With pip
You can install the latest snapshot of django-celery-results using the following pip command:
$ pip install https://github.com/celery/django-celery-results/zipball/master#egg=django-celery-results
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 as part of the Tidelift Subscription
The maintainers of django-celery-results and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/pypi-django-celery-results?utm_source=pypi-django-celery-results&utm_medium=referral&utm_campaign=readme&utm_term=repo)
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 django_celery_results-2.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf24ecc29c42e49cc7eb30b9b3739471331e2a0ca517cc88ca53a0cf3a2031d1 |
|
MD5 | 89e125767dfffad48ea8bedaaf012940 |
|
BLAKE2b-256 | 788fd76a471078de67bf2160048ae147659115adef8db1e66462a5d778339f80 |
Hashes for django_celery_results-2.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8c9416619dbcc38f13398e31bcb1f14a228cd1e8f65fb22d3b7fc68aaa5331a |
|
MD5 | a10e52bf612270671c229255f18c6535 |
|
BLAKE2b-256 | 8468b058372cd9c83ba9fa4da28668dfd7a51a434353d898187b4a512f5d2910 |