Celery result backends for Django.
Project description
- Version:
1.0.4
- 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.
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-1.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e735dc3e705a0e21afc3b6fa2918ec388258145fcbaad3727c493c5707d25034 |
|
MD5 | b72742e2f7c5cdd95fe7cb025f0b6e33 |
|
BLAKE2b-256 | 3da9f8408dc59fbe63d70bda78d0a2cd5b2918ee59785c2bc2449a6fe4962b16 |
Hashes for django_celery_results-1.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 932277e9382528f74778b30cf90e17941cba577b7d73cee09ed55e4972972c32 |
|
MD5 | f4d681f078c574d9316cef35434d8ae6 |
|
BLAKE2b-256 | 0d375e9578476a7d77cee72e5d0ba60503a9bb3efe4254e4d1de87950ac1cc96 |