Skip to main content

z4j Celery queue engine adapter (Apache 2.0)

Project description

z4j-celery

PyPI version Python License

License: Apache 2.0 Status: v1.0.0 - first public release. The flagship queue-engine adapter.

The Celery queue-engine adapter for z4j. Captures every task lifecycle event via Celery's signal system, executes control actions (retry, cancel, bulk retry, purge, pool restart) against your live Celery app, and discovers tasks via a five-layer pipeline that handles signal registration, broker events, and static AST scans.

Install

pip install z4j-celery z4j-celerybeat

Pair with a framework adapter:

pip install z4j-django z4j-celery z4j-celerybeat      # Django
pip install z4j-flask  z4j-celery z4j-celerybeat      # Flask
pip install z4j-fastapi z4j-celery z4j-celerybeat     # FastAPI
pip install z4j-bare  z4j-celery z4j-celerybeat       # Bare worker

What it ships on day 1

Capability Status Notes
Event capture Dual-capture: Celery signals (task_received, task_succeeded, task_failed, task_retried, task_revoked) + broker events for multi-worker deployments
Discovery Five-layer pipeline: runtime celery_app.tasks, static tasks.py AST scan, signal registration, merged task registry
submit_task / retry_task / cancel_task Direct against the Celery app
bulk_retry Filter-driven; re-enqueues matching tasks
purge_queue With confirm-token + Z4J_PURGE_THRESHOLD guard
requeue_dead_letter From the configured DLX
restart_worker Broadcast pool_restart - zero task loss, child processes drain in-flight tasks before respawn
pool_grow / pool_shrink Via Celery's control API
rate_limit Broker-side via Celery's control channel - the only engine where this works correctly
reconcile_task Via AsyncResult against the result backend

This is the widest feature coverage of any adapter. Celery's rich remote- control surface lets z4j offer capabilities no other engine can match (pool restart with zero task loss, broker-side rate limiting).

Reliability

  • No exception from the adapter propagates to Celery signal handlers.
  • Events buffer to an in-memory ring; a background thread flushes to the brain. Signal handlers never do network I/O.
  • When the brain is unreachable, events buffer locally (via z4j-bare's SQLite buffer). Your Celery workers never slow down or block.

Scheduler pairing

Use z4j-celerybeat for Celery Beat / django-celery-beat schedules on the Schedules page.

Documentation

License

Apache 2.0 - see LICENSE. Your application is never AGPL-tainted by importing z4j_celery.

Links

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

z4j_celery-1.1.2.tar.gz (63.7 kB view details)

Uploaded Source

Built Distribution

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

z4j_celery-1.1.2-py3-none-any.whl (59.0 kB view details)

Uploaded Python 3

File details

Details for the file z4j_celery-1.1.2.tar.gz.

File metadata

  • Download URL: z4j_celery-1.1.2.tar.gz
  • Upload date:
  • Size: 63.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for z4j_celery-1.1.2.tar.gz
Algorithm Hash digest
SHA256 8ec3d8d41b8711a1df1892b5a84984fb56d42a4af9db66905ffcf421a1c30dd8
MD5 7b2e5a44c050d7ec516f43f1d20d0313
BLAKE2b-256 67a2a976dd8441df6b7f0726335da953134b7c64a083935808d9ff64a5a948a6

See more details on using hashes here.

File details

Details for the file z4j_celery-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: z4j_celery-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 59.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for z4j_celery-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e8c44f04cee4488533167ce1c90b124eb99d0f8da6ab5d39cf0d87806fc9bb77
MD5 aec9509e3ab6e5085ced85cda0672f04
BLAKE2b-256 be1c93e121a85ab8713a2a3b89c28bae11ff0716896822a2a9cbbb69ab2db880

See more details on using hashes here.

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