Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Celery result back end with django

License

NotificationsYou must be signed in to change notification settings

celery/django-celery-results

Repository files navigation

Build statuscoverageBSD Licensedjango-celery-results can be installed via wheelSupported Python versions.Support Python implementations.

Version:2.6.0
Web:https://django-celery-results.readthedocs.io/
Download:https://pypi.python.org/pypi/django-celery-results
Source:https://github.com/celery/django-celery-results
DeepWiki:Ask http://DeepWiki.com
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 likeany other Django model.

Installing

The installation instructions for this extension is availablefrom theCelery 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 fromhttps://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 ifyou are not currently using a virtualenv.

Using the development version

With pip

You can install the latest snapshot of django-celery-results using the followingpip command:

$ pip install https://github.com/celery/django-celery-results/zipball/master#egg=django-celery-results

Running with Docker Compose

To run the project using Docker Compose, ensure you have Docker and Docker Compose installed. Then, execute the following command in the project root directory:

$ docker-compose up --build

This will start a containerized PostgreSQL database and run the tests using tox.

Issues with mysql

If you want to rundjango-celery-results with MySQL, you might run into some issues.

One such issue is when you try to runpython 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 of191 seems to work for MySQL.

django-celery-results for enterprise

Available as part of the Tidelift Subscription.

The maintainer of django-celery-results and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainer of the exact packages you use.Learn more.


[8]ページ先頭

©2009-2025 Movatter.jp