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 in the general matrix, plus dedicated live-broker smoke coverage for Django 5.0 and 5.1. 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.1

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.1
File Size Uploaded
django_celery_outbox-0.4.1.tar.gz 35.3 kB Details

Built distribution (wheel)

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

Total release size: 81.0 kB

Release files / django_celery_outbox-0.4.1.tar.gz

Download URL django_celery_outbox-0.4.1.tar.gz
Size 35.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1fdda172d35057615dd66d618623a4e79d84a3d2557e7faa93e010f913af00d4
BLAKE2b-256 checksum
How to use checksums
d4bba2cc8ce41dcb464873ed387a585925e58bebd6bdad2d305ae5bb3e7d4e51
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 4, 2026.

Transparency log

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

Download URL django_celery_outbox-0.4.1-py3-none-any.whl
Size 45.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9ddf8f949f622974354392ff4bee65c62af9d2dc2cee770cbee9b17959220689
BLAKE2b-256 checksum
How to use checksums
cbb0f3e4867f59bce68cfa57901282cbca6d60c3b7fd3263e11a5933a2203ea6
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 4, 2026.

Transparency log

Release history Release notifications | RSS feed

0.4.2

2 release files

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

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