z4j RQ queue engine adapter (Apache 2.0)
Project description
z4j-rq
License: Apache 2.0
Status: v1.0.0 — first public release alongside z4j-celery and z4j-dramatiq.
The RQ (Redis Queue) queue-engine adapter
for z4j. Drop into any RQ install (bare-Python, Django+django-rq,
FastAPI, anything) and z4j observes every job your workers run —
without modifying your task code.
Install
# As part of the z4j stack:
pip install z4j[rq]
# Or just this package:
pip install z4j-rq
What it ships on day 1
| Capability | Status | Notes |
|---|---|---|
| Event capture (received / started / succeeded / failed) | ✅ | Worker-wrap (every job) + per-job callbacks (opt-in) |
| Discovery | ✅ | Walks queues + StartedJobRegistry + FinishedJobRegistry |
retry |
✅ | Re-enqueues by id; refuses if job is currently running |
cancel |
⚠️ | Queued jobs removed; running jobs get a stop-command (RQ ≥1.13) |
purge_queue |
✅ | With confirm-token + Z4J_PURGE_THRESHOLD guard |
What it deliberately does NOT ship
| Capability | Why |
|---|---|
bulk_retry |
Deferred to v1.1 |
requeue_dead_letter |
Deferred to v1.1 (RQ has FailedJobRegistry) |
restart_worker |
RQ workers expose no remote-control channel — never |
rate_limit |
RQ has no per-task rate-limit primitive — never |
pool grow / shrink / consumer ops |
RQ has no pool concept — never |
The adapter advertises only what it implements via
capabilities() — the dashboard hides every button it can't honor,
so users never click an action that would silently fail.
Scheduler pairing
Use z4j-rqscheduler for
rq-scheduler periodic jobs on the Schedules page.
Documentation
License
Apache 2.0 — see LICENSE.
Links
- Homepage: https://z4j.com
- Documentation: https://z4j.dev
- Issues: https://github.com/z4jdev/z4j-rq/issues
- Changelog: CHANGELOG.md
- Security:
security@z4j.com(see SECURITY.md)
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
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_rq-1.0.0.tar.gz.
File metadata
- Download URL: z4j_rq-1.0.0.tar.gz
- Upload date:
- Size: 41.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba1f815bdad099243e941d47e99069334987142e709a42ffe96630e1d6cdbed1
|
|
| MD5 |
22d5001ba83b6c89942c21e3faad1899
|
|
| BLAKE2b-256 |
33bdc7731e4409b0380ac42d47039dee90b74e17ac409d0f396d7d3d3c1cc0cd
|
File details
Details for the file z4j_rq-1.0.0-py3-none-any.whl.
File metadata
- Download URL: z4j_rq-1.0.0-py3-none-any.whl
- Upload date:
- Size: 39.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd68ef65db5e3c25c9118194f81d7f9a73f213dc831d1efca0a9cabacdb7430a
|
|
| MD5 |
871e96f1ea9f1ad31347805285a4e9d4
|
|
| BLAKE2b-256 |
063e47b8f9c590d1c5ca2d5bf5c6d14114b25ca3000c9d59d1d470dca9ae7b63
|