Skip to main content

django-celery-outbox

Tests CodeQL codecov PyPI version Docs License: MIT

Transactional Outbox pattern for Celery tasks in Django.

Features

  • Durable persistence for committed task intents
  • Duplicate-tolerant relay recovery
  • Automatic retry with capped exponential backoff
  • Dead letter queue for exhausted retries
  • Structlog & Sentry trace propagation
  • StatsD metrics
  • Django admin integration

Compatibility

CI exercises Django 4.2 and 5.2 with Celery 5.3–5.6 on Python 3.10–3.12 in the general matrix, Django 5.2 on Python 3.13 and 3.14, Django 6.0 and 6.1 on Python 3.12 and 3.14, plus dedicated live-broker smoke coverage for Django 5.0 and 5.1. The Django 6.1 lanes run on PostgreSQL only: Django 6.1 requires MySQL 8.4, and the CI MySQL service runs 8.0. The support claims in this repository stay aligned with those explicit lanes.

Coverage

Canonical coverage is published from the Py3.12 / Django 5.2 / Celery 5.6 / PostgreSQL lane in GitHub Actions.

Codecov Tree Graph

Quick Start

pip install django-celery-outbox
# settings.py
INSTALLED_APPS = [..., 'django_celery_outbox']
CELERY_OUTBOX_APP = 'myproject.celery.app'

# celery.py
from django_celery_outbox import OutboxCelery

app = OutboxCelery('myproject')
python manage.py migrate
python manage.py check --database default
python manage.py celery_outbox_relay

check --database <alias> verifies SKIP LOCKED support and the outbox schema on the alias that stores the outbox tables; a plain check validates settings only. See Getting Started.

Committed rows stay in the outbox until the relay publishes them or dead-letters them, but consumers still need to be idempotent. If the relay crashes after a broker publish and before cleanup, stale-timeout recovery can reclaim and resend the row. Stronger end-to-end guarantees still depend on broker confirms; without publisher confirms, the broker can fail ambiguously after Celery.send_task() returns.

Full Documentation →

Security

See Security Guide for PII handling, traceback logging, and DLQ retention.

License

MIT

Metadata

Release files for django-celery-outbox 0.4.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-celery-outbox 0.4.3
File Size Uploaded Provenance Actions
django_celery_outbox-0.4.3.tar.gz 35.7 kB With provenance Details for django_celery_outbox-0.4.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-celery-outbox 0.4.3
File Interpreter ABI Platform Actions
django_celery_outbox-0.4.3-py3-none-any.whl Python 3 none any Details for django_celery_outbox-0.4.3-py3-none-any.whl

Total release size: 81.5 kB

Release files / django_celery_outbox-0.4.3.tar.gz

Download URL django_celery_outbox-0.4.3.tar.gz
Size 35.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a3b76c9be50e38b31f8d65648929331967b18d855af0a81b186175e375c97731
BLAKE2b-256 checksum
How to use checksums
1b7f4526b2f821f652cea7ce8b273568bb4951f6a4e572dd99db2e628532253e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

Release files / django_celery_outbox-0.4.3-py3-none-any.whl

Download URL django_celery_outbox-0.4.3-py3-none-any.whl
Size 45.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9dac4638c540423cccda7319f1f69cf044e39a11c3799f27ff994cf638a69112
BLAKE2b-256 checksum
How to use checksums
71320cfa5049e29d3635bb0b0552b6ff61e843f90d548d743e982a3d419c021b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

Security for django-celery-outbox 0.4.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for django_celery_outbox-0.4.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page