z4j-celery
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
- Homepage: https://z4j.com
- Documentation: https://z4j.dev
- PyPI: https://pypi.org/project/z4j-celery/
- Issues: https://github.com/z4jdev/z4j-celery/issues
- Changelog: CHANGELOG.md
- Security: security@z4j.com (see SECURITY.md)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file z4j_celery-1.9.1.tar.gz.
File metadata
- Download URL: z4j_celery-1.9.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7bb910301d664502f2ba73e45c2adbc6da9a058d2f4859c60424500e9d29628
|
|
| MD5 |
69f205b98b38bb92779bfe7c966d1ea0
|
|
| BLAKE2b-256 |
1891f9b1462ffac1d8f29b05d9c03a8c824121ee4e8677d3b98cfd62e2d95636
|
File details
Details for the file z4j_celery-1.9.1-py3-none-any.whl.
File metadata
- Download URL: z4j_celery-1.9.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
674fc535cddc338eb4d7b19a34208ae09e827a65e20981a511cd77f79b152caf
|
|
| MD5 |
dfba9895393011a0580eff7345d61819
|
|
| BLAKE2b-256 |
1ef5023dc3d954bb148245b8d719dda70838d65de7d9eb423d2e7e5372901690
|