Skip to main content

Celery result backends for Django.

Project description

===================================================================== Celery Result Backends using the Django ORM/Cache framework.

|build-status| |coverage| |license| |wheel| |pyversion| |pyimp|

:Version: 2.2.0 :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_

.. _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:

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

.. _installing-from-source:

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.

.. _installing-from-git:

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.


.. |build-status| image:: https://secure.travis-ci.org/celery/django-celery-results.svg?branch=master
    :alt: Build status
    :target: https://travis-ci.org/celery/django-celery-results

.. |coverage| image:: https://codecov.io/github/celery/django-celery-results/coverage.svg?branch=master
    :target: https://codecov.io/github/celery/django-celery-results?branch=master

.. |license| image:: https://img.shields.io/pypi/l/django-celery-results.svg
    :alt: BSD License
    :target: https://opensource.org/licenses/BSD-3-Clause

.. |wheel| image:: https://img.shields.io/pypi/wheel/django-celery-results.svg
    :alt: django-celery-results can be installed via wheel
    :target: http://pypi.python.org/pypi/django-celery-results/

.. |pyversion| image:: https://img.shields.io/pypi/pyversions/django-celery-results.svg
    :alt: Supported Python versions.
    :target: http://pypi.python.org/pypi/django-celery-results/

.. |pyimp| image:: https://img.shields.io/pypi/implementation/django-celery-results.svg
    :alt: Support Python implementations.
    :target: http://pypi.python.org/pypi/django-celery-results/

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


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

Uploaded Source

Built Distribution

django_celery_results-2.2.0-py2.py3-none-any.whl (27.4 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: django_celery_results-2.2.0.tar.gz
  • Upload date:
  • Size: 70.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.25.1 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for django_celery_results-2.2.0.tar.gz
Algorithm Hash digest
SHA256 cc0285090a306f97f1d4b7929ed98af0475bf6db2568976b3387de4fbe812edc
MD5 4a9b7199457c9acd76834e3d12fe6134
BLAKE2b-256 0272205a889f7d7c46f8a3661b9f895760dc2f9fd8f0d3a4ed17132c2fa8fbe6

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: django_celery_results-2.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 27.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.25.1 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for django_celery_results-2.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d5f83fad9091e52cd6dbb3ca80632153ad14b6cdac4d73258e040f92717237cb
MD5 3f1ff89cea68dfe2d5156120c2253e50
BLAKE2b-256 c7cd6d508e5b085d4f7125959735b39938d1743593ff13dcc151acdef0878234

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