Skip to main content

z4j-rq

PyPI version Python License

The RQ engine adapter for z4j.

Streams supported RQ job lifecycle events from your workers to z4j and accepts operator control actions from the dashboard. Pair with z4j-rqscheduler to manage periodic schedules.

Compatibility

  • RQ 1.10.1+ and <3 (capped below the RQ 3.0 breaking-major rewrite)
  • Python 3.11+

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

What it ships

Capability Notes
Job lifecycle events started, succeeded, failed, revoked (canceled)
Job discovery runtime registry of queue names + worker introspection
Submit / retry / cancel direct against the RQ queue
Bulk retry retries brain-resolved, project-owned explicit IDs by reference; never sweeps the broker-wide failed registry
Purge queue with confirm-token guard
Reconcile task via Redis-backed job hash lookup

Install

pip install z4j-rq z4j-rqscheduler

Pair with a framework adapter:

pip install z4j-django  z4j-rq z4j-rqscheduler   # Django
pip install z4j-flask   z4j-rq z4j-rqscheduler   # Flask
pip install z4j-fastapi z4j-rq z4j-rqscheduler   # FastAPI
pip install z4j-bare    z4j-rq z4j-rqscheduler   # framework-free worker

Pairs with

Reliability

  • For POSIX fork workers, select the memory-corrected worker through RQ's standard CLI extension point:

    rq worker --worker-class z4j_rq.worker.Worker default
    

    Keep your existing queues, Redis options, settings module and z4j startup integration. In Python, import Worker from z4j_rq.worker instead of rq. The worker sets each job's environment only in its child process, preventing the parent-side native allocation growth reproduced with stock RQ on glibc. RQ retains execution, monitoring, timeout, retry and shutdown handling; the RQ 1.x session and RQ 2.x process-group behavior are preserved.

  • Selecting this class is explicit. Installing the adapter alone does not replace stock or custom workers. SimpleWorker, SpawnWorker and Windows workers are outside this fork-worker repair. If you retain an affected stock fork worker, use --max-jobs 50000 with a process manager configured to restart successful exits. Normal supervision and application memory limits remain useful with either worker.

  • Lifecycle-capture failures are isolated from RQ workers and job hooks; 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/rq/.

License

Apache-2.0, see LICENSE. The fork boundary adapted from RQ retains its BSD-2-Clause notice in RQ_LICENSE, included in the installed package.

Metadata

Release files for z4j-rq 1.11.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for z4j-rq 1.11.0
File Size Uploaded
z4j_rq-1.11.0.tar.gz 64.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for z4j-rq 1.11.0
File Interpreter ABI Platform
z4j_rq-1.11.0-py3-none-any.whl Python 3 none any Details

Total release size: 121.6 kB

Release files / z4j_rq-1.11.0.tar.gz

Download URL z4j_rq-1.11.0.tar.gz
Size 64.7 kB
Tags Source
SHA-256 checksum
How to use checksums
343eb9307900b061d220234fff09bc29d612d1725022c99d94e693a97fc11cfa
BLAKE2b-256 checksum
How to use checksums
bd820fc370c59c2d4afaae7f6bf377e40a6f95d9b751603b3bc540a780c0a3bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / z4j_rq-1.11.0-py3-none-any.whl

Download URL z4j_rq-1.11.0-py3-none-any.whl
Size 56.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9d0f64ca8fba904fca72ab27448a206becaa42506ed0879e32b951d7fadfdcff
BLAKE2b-256 checksum
How to use checksums
bbbf0b8a64331784a2fddf6da6828c4f3fccef5af5716257d86967cf983596f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

This release

1.11.0 This release

2 release files

1.10.0

2 release files

1.9.1

2 release files

1.9.0

2 release files

1.8.0

2 release files

1.7.0

2 release files

1.6.7

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.1.2

2 release files

1.0.1

2 release files

1.0.0

2 release 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