Skip to main content

z4j RQ queue engine adapter (Apache 2.0)

Project description

z4j-rq

PyPI version Python License

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

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_rq-1.0.0.tar.gz (41.6 kB view details)

Uploaded Source

Built Distribution

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

z4j_rq-1.0.0-py3-none-any.whl (39.2 kB view details)

Uploaded Python 3

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

Hashes for z4j_rq-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ba1f815bdad099243e941d47e99069334987142e709a42ffe96630e1d6cdbed1
MD5 22d5001ba83b6c89942c21e3faad1899
BLAKE2b-256 33bdc7731e4409b0380ac42d47039dee90b74e17ac409d0f396d7d3d3c1cc0cd

See more details on using hashes here.

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

Hashes for z4j_rq-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fd68ef65db5e3c25c9118194f81d7f9a73f213dc831d1efca0a9cabacdb7430a
MD5 871e96f1ea9f1ad31347805285a4e9d4
BLAKE2b-256 063e47b8f9c590d1c5ca2d5bf5c6d14114b25ca3000c9d59d1d470dca9ae7b63

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