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
File details
Details for the file django_celery_results-1.1.0.tar.gz
.
File metadata
- Download URL: django_celery_results-1.1.0.tar.gz
- Upload date:
- Size: 58.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c4473de897d4e2ea2aa813771d2424c7d183ea2e9c8aa04c58234113a381e84 |
|
MD5 | ca4b01f5c7c2e303060dfc0436d1322c |
|
BLAKE2b-256 | 0c074e2d4d9d117c375b1276ba4da4f25cdbece65bd0181121dcff7e120b3833 |
Provenance
File details
Details for the file django_celery_results-1.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: django_celery_results-1.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 17.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a01b449f2c98d552c837bbcf9127775c1043ac77d9f94d2e44c5afc4556c7f0 |
|
MD5 | a702bb5bd6fe4f8b01814f2db482fcb5 |
|
BLAKE2b-256 | 31078052358307c6243c1f65abbd84670bc5b4fb137af6a197834b5125bf8e26 |