Skip to main content

Celery result backends for Django.

Project description

Build status coverage BSD License django-celery-results can be installed via wheel Supported Python versions. Support Python implementations.

Version:

1.0.2

Web:

http://django-celery-results.readthedocs.io/

Download:

http://pypi.python.org/pypi/django-celery-results

Source:

http://github.com/celery/django-celery-results

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:

http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html#django-celery-results-using-the-django-orm-cache-as-a-result-backend

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_celery_results-1.0.2.tar.gz (56.1 kB view details)

Uploaded Source

Built Distribution

django_celery_results-1.0.2-py2.py3-none-any.whl (16.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django_celery_results-1.0.2.tar.gz.

File metadata

  • Download URL: django_celery_results-1.0.2.tar.gz
  • Upload date:
  • Size: 56.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for django_celery_results-1.0.2.tar.gz
Algorithm Hash digest
SHA256 0e11872435047ad959e92d7c5734233afbc0c9ec3abb00031295f65d295c8298
MD5 2d2925c38034017b6af3308f729c0196
BLAKE2b-256 dddedcad023fdd14beede3e93b3e6100f8fa8edb3d5069beac5ba3dd9146044d

See more details on using hashes here.

Provenance

File details

Details for the file django_celery_results-1.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: django_celery_results-1.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 16.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for django_celery_results-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 18047c4804e1edc212b9732b07f92c98bf623297c6b3b4c7150eb4817c70b585
MD5 ba23d8c646ea1c140b6738b4a5337c0e
BLAKE2b-256 bf603d5da1b04ef388bd8e1e99d8f3d54558658a842ca5b8b53af8dce43f2ccb

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page