Skip to main content

Celery backend for Django's task framework

Project description

django-tasks-celery

Exploratory / Alpha — This package is an early-stage exploration of a Celery backend for Django's django.tasks framework. It is not yet production-ready. APIs may change without notice. Use at your own risk.

Celery backend for Django 6.0's built-in django.tasks framework. Implements BaseTaskBackend so that @task / enqueue() dispatches to Celery workers.

Installation

pip install django-tasks-celery

Configuration

# settings.py
CELERY_BROKER_URL = "redis://localhost:6379/0"
CELERY_RESULT_BACKEND = "redis://localhost:6379/1"
CELERY_RESULT_EXTENDED = True

TASKS = {
    "default": {
        "BACKEND": "django_tasks_celery.CeleryBackend",
        "QUEUES": ["default"],
    },
}

Usage

from django.tasks import task

@task
def send_email(to, subject, body):
    ...

# Enqueue
result = send_email.enqueue(to="user@example.com", subject="Hello", body="World")

Compatibility

  • Django: 6.0+
  • Celery: 5.4+
  • Python: 3.12+

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_tasks_celery-0.1.0a2.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

django_tasks_celery-0.1.0a2-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file django_tasks_celery-0.1.0a2.tar.gz.

File metadata

  • Download URL: django_tasks_celery-0.1.0a2.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for django_tasks_celery-0.1.0a2.tar.gz
Algorithm Hash digest
SHA256 892b3288559e390ba58417273453cb4f0e66523174af441255715352b5217c88
MD5 b56751e391cbd1589c591fd4ad11a19e
BLAKE2b-256 71c698e2a67459da66b88026917c7403966e6def8070f3672fbb6a39fb4b2fe7

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_tasks_celery-0.1.0a2.tar.gz:

Publisher: publish.yml on oliverhaas/django-tasks-celery

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_tasks_celery-0.1.0a2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_tasks_celery-0.1.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 004b04f6bdeb03e7c50ed1ebfa684c045bca42797bbb22a30570f03b7f9c504e
MD5 3b57a96816255065e735ef146c543640
BLAKE2b-256 0a2500ea489d9e583ebf94592ca5eac4e07a63949579f0f6d85f8397b0efa2d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_tasks_celery-0.1.0a2-py3-none-any.whl:

Publisher: publish.yml on oliverhaas/django-tasks-celery

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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