Skip to main content

z4j-celery

PyPI version Python License

The Celery engine adapter for z4j.

Streams supported task lifecycle events from your Celery workers to the z4j brain and accepts operator control actions from the dashboard. Pair with z4j-celerybeat to manage periodic / cron schedules.

Compatibility

  • Celery 5.2.2+ (no upper cap)
  • Python 3.11+

Full per-adapter matrix at https://z4j.dev/reference/compatibility/.

What it ships

Capability Notes
Task lifecycle events submitted, started, succeeded, failed, retried, revoked
Task discovery runtime registry merge + static tasks.py scan
Submit / retry / cancel direct against the Celery app
Bulk retry retries brain-selected explicit task IDs individually; does not sweep the broker
Purge queue with confirm-token guard
Requeue dead-letter unsupported: broker-specific atomic consume/ack and routing are required
Restart worker fire-and-forget pool_restart; requires Celery's worker_pool_restarts setting and operator verification
Pool grow / shrink via Celery's control API
Rate limit fire-and-forget Celery remote-control broadcast to the selected worker(s)
Reconcile task via the result backend

The widest feature coverage of any z4j engine adapter, Celery's remote-control surface provides controls other engines cannot expose. Worker-control broadcasts do not acknowledge execution: verify the worker state afterward. pool_restart is intended for prefork deployments; Celery's gevent and eventlet pools do not support it reliably.

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   # framework-free worker

Pairs with

  • z4j-celerybeat, schedule adapter for Celery Beat / django-celery-beat

Reliability

  • Lifecycle-capture failures are isolated from Celery workers and signal handlers; capture hooks make no brain network request inline.
  • The in-process event queue and SQLite outbound buffer are bounded. Queue overflow drops new events and buffer pressure evicts oldest rows; both losses are logged.

Documentation

Full docs at z4j.dev/engines/celery/.

License

Apache-2.0, see LICENSE.

Links

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.9.0.tar.gz (78.0 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.9.0-py3-none-any.whl (70.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: z4j_celery-1.9.0.tar.gz
  • Upload date:
  • Size: 78.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.7

File hashes

Hashes for z4j_celery-1.9.0.tar.gz
Algorithm Hash digest
SHA256 e8b1583163d8ad27d460959afcb20b551456bbe9357cf779f7f2ef0ea09d47f4
MD5 c3c5ff7cd818acc320c54d0dde1500c9
BLAKE2b-256 897e7fa5339a78239dcf264d1cf2c2270aaa42d49d527bc23045213e94f60b45

See more details on using hashes here.

File details

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

File metadata

  • Download URL: z4j_celery-1.9.0-py3-none-any.whl
  • Upload date:
  • Size: 70.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.7

File hashes

Hashes for z4j_celery-1.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 369624bc52c489c0fac2a16d307f76811edce835e06564e31db196916ed5814a
MD5 99e2007dc8a31d9018df81a8bd4af953
BLAKE2b-256 d1345ef2a400229dc533c06ea7fd73e47186b016ce471b2581ba144293d9ec15

See more details on using hashes here.

Release history Release notifications | RSS feed

1.10.0

2 files

1.9.1

2 files

This release

1.9.0 This release

2 files

1.8.0

2 files

1.7.0

2 files

1.6.7

2 files

1.6.6

2 files

1.6.0

2 files

1.5.0

2 files

1.4.0

2 files

1.3.0

2 files

1.1.2

2 files

1.1.0

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 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