z4j-rqscheduler
The rq-scheduler adapter for z4j.
Surfaces rq-scheduler periodic / interval / cron jobs on the dashboard's Schedules page, read, trigger, disable (cancel), delete.
Compatibility
- rq-scheduler 0.11+ (no upper cap)
- Python 3.11+
Full per-adapter matrix at https://z4j.dev/reference/compatibility/.
What it ships
| Capability | Notes |
|---|---|
| List schedules | every job rq-scheduler currently tracks |
| Disable | cancels the scheduled job (rq-scheduler has no enabled flag); re-enable by re-registering it from your code |
| Trigger now | enqueues the task immediately, outside the schedule |
| Delete | clean removal from the rq-scheduler set |
| Boot inventory | full snapshot at agent connect; existing schedules show up without editing |
Schedule create and update are not yet supported from the
dashboard for rq-scheduler, so the brain greys those actions out.
Define schedules in your project's Python entrypoint
(scheduler.cron(...) / scheduler.schedule(...)); z4j inventories them and
exposes the supported trigger, disable, and delete controls once they exist.
Enable is not advertised because a cancelled definition cannot be restored by
rq-scheduler; re-register it from application code instead.
Install
pip install z4j-rq z4j-rqscheduler
import os
from rq import Queue
from rq_scheduler import Scheduler
from redis import Redis
from z4j_bare import install_agent
from z4j_rq import RqEngineAdapter
from z4j_rqscheduler import RqSchedulerAdapter
redis = Redis(host="localhost")
queue = Queue(connection=redis)
scheduler = Scheduler(queue=queue, connection=redis)
install_agent(
engines=[RqEngineAdapter(rq_app=queue)],
schedulers=[RqSchedulerAdapter(scheduler=scheduler)],
brain_url="https://brain.example.com",
token="z4j_agent_...",
project_id="my-project",
hmac_secret=os.environ["Z4J_HMAC_SECRET"],
)
Pairs with
z4j-rq, engine adapter
Reliability
- rq-scheduler has no registry-change signal, so z4j refreshes inventory at boot and during periodic reconciliation.
- Redis calls run on the adapter's bounded offload pool. A mutation that exceeds its 10-second timeout is reported as indeterminate because the worker thread may still complete it.
Documentation
Full docs at z4j.dev/schedulers/rq-scheduler/.
License
Apache-2.0, see LICENSE.
Links
- Homepage: https://z4j.com
- Documentation: https://z4j.dev
- PyPI: https://pypi.org/project/z4j-rqscheduler/
- Issues: https://github.com/z4jdev/z4j-rqscheduler/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_rqscheduler-1.9.1.tar.gz.
File metadata
- Download URL: z4j_rqscheduler-1.9.1.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24b277b52ebd9c3db3e9a5680c9a5a072aedabc9fdc968da6488508f83cef967
|
|
| MD5 |
02c3257d77b494cb7b176b8a74d1c706
|
|
| BLAKE2b-256 |
53217796618595d64335ffc208ed1ea8bb14ed4991d17310f74b8ae2905a8742
|
File details
Details for the file z4j_rqscheduler-1.9.1-py3-none-any.whl.
File metadata
- Download URL: z4j_rqscheduler-1.9.1-py3-none-any.whl
- Upload date:
- Size: 15.1 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 |
98e79d447ebbcc333db65029716124f56f3d0583a4aee6012a97f6d9410badda
|
|
| MD5 |
c3aa8752f2f0c1ff87bbd9ee467ab899
|
|
| BLAKE2b-256 |
80cc5cbdceb406b86846c40f9e5efa2de7908aefc0664ad9bc8424d7eed7b6fa
|