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.4

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.1.1.tar.gz (58.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_celery_results-1.1.1-py2.py3-none-any.whl (18.0 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: django_celery_results-1.1.1.tar.gz
  • Upload date:
  • Size: 58.8 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

Hashes for django_celery_results-1.1.1.tar.gz
Algorithm Hash digest
SHA256 f7638b4eaa30ae8c58d3b07196c855c67f341760f434fb64a4c81bf4daf28789
MD5 c70fd16cbfa83395625e8422cf378955
BLAKE2b-256 7434775645fa33f831e6f7ebb9786ce69048e14822630ba1731f9e269565d860

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_celery_results-1.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 18.0 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

Hashes for django_celery_results-1.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7c4c6d6d20d6dd7074b07b7a236b5e7769e515379191608527f7fbcc95a669a5
MD5 28c573414a13cdb153aed79f36a9329d
BLAKE2b-256 1d3fa82aa9fb1f2e35a72a710134a7bf9d9b1dc45dea9f6c2c16d06bb6363554

See more details on using hashes here.

Supported by

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