Skip to main content
DjanQuiltDB

djanquiltdb-plugin-celery

PyPI Supported Python versions Supported Django versions Supported PostgreSQL versions CI Documentation BSD-3-Clause licence

DjanQuiltDB shards a database across schemas and nodes. This library provides Celery tasks that run in the shard that they are sent to, and that are retried while that shard is in maintenance:

from djanquiltdb.decorators.celery import task_for_shard


@task_for_shard
def send_invoice(invoice_id):
    Invoice.objects.get(pk=invoice_id).send()


send_invoice.for_shard(shard).delay(invoice_id=12)
send_invoice.delay(invoice_id=12, tenant_id=3)

A task that is decorated with task_for_node runs in the public schema of the node that its node_name identifies. A task that is decorated with task_for_active_shard runs in the shard that is active where the task is sent. A task that is decorated with task_for_every_shard runs once in every active shard when it is sent without a shard:

from djanquiltdb.decorators.celery import task_for_every_shard


@task_for_every_shard(queue='fanout', spread=(0, 300))
def clean_up_drafts():
    Draft.objects.filter(updated_at__lt=a_month_ago()).delete()


clean_up_drafts.delay()

Install the plugin through the celery extra of DjanQuiltDB:

pip install djanquiltdb[celery]

Full documentation is at https://djanquiltdb.readthedocs.io/en/latest/plugins/celery/index.html.

Development

This package is developed in the DjanQuiltDB repository beside djanquiltdb itself. Tests run through tox against the Postgres containers in the repository’s docker-compose.yml; see DOCKER.md at the repository root:

docker compose run --rm test tox

Requirements

  • Python 3.14

  • Django 6.0 or 6.1

  • PostgreSQL 17 or 18

  • djanquiltdb 4.4.0 or newer 4.x

  • Celery 5.6 or newer 5.x

Metadata

Release files for djanquiltdb-plugin-celery 1.0.0

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

Source distribution (sdist)

Source distribution for djanquiltdb-plugin-celery 1.0.0
File Size Uploaded Provenance Actions
djanquiltdb_plugin_celery-1.0.0.tar.gz 45.2 kB With provenance Details for djanquiltdb_plugin_celery-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for djanquiltdb-plugin-celery 1.0.0
File Interpreter ABI Platform Actions
djanquiltdb_plugin_celery-1.0.0-py3-none-any.whl Python 3 none any Details for djanquiltdb_plugin_celery-1.0.0-py3-none-any.whl

Total release size: 66.7 kB

Release files / djanquiltdb_plugin_celery-1.0.0.tar.gz

Download URL djanquiltdb_plugin_celery-1.0.0.tar.gz
Size 45.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e4544c27a48db5736f48abf4b2d0e05e3b2f438f03a51e9066a16334356f2cd4
BLAKE2b-256 checksum
How to use checksums
481428c34384293f32d0804b6c3b9310c99d51957d192804f12a1dee8723246d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 22, 2026.

Transparency log

Release files / djanquiltdb_plugin_celery-1.0.0-py3-none-any.whl

Download URL djanquiltdb_plugin_celery-1.0.0-py3-none-any.whl
Size 21.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f28017d28b44a5ba1782a726c87ffaa272ad66543f02ffcb06be4f2b6536f02
BLAKE2b-256 checksum
How to use checksums
cceb60b231bc063506272b7127f423aeba89b1f1aebd16fcd54a237b58ad593a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 22, 2026.

Transparency log

Security for djanquiltdb-plugin-celery 1.0.0

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 djanquiltdb_plugin_celery-1.0.0.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 22, 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