Skip to main content

z4j-rqscheduler

PyPI version Python License

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://docs.z4j.com/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

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 docs.z4j.com/schedulers/rq-scheduler/.

License

Apache-2.0, see LICENSE.

Metadata

Release files for z4j-rqscheduler 1.12.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-rqscheduler 1.12.0
File Size Uploaded
z4j_rqscheduler-1.12.0.tar.gz 17.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for z4j-rqscheduler 1.12.0
File Interpreter ABI Platform
z4j_rqscheduler-1.12.0-py3-none-any.whl Python 3 none any Details

Total release size: 32.4 kB

Release files / z4j_rqscheduler-1.12.0.tar.gz

Download URL z4j_rqscheduler-1.12.0.tar.gz
Size 17.3 kB
Tags Source
SHA-256 checksum
How to use checksums
db0ca36ed51236185fc0aae4e8a6dbd3da5fa24e50844fe81c2827a72cf8bc46
BLAKE2b-256 checksum
How to use checksums
843e81232d471925edc74dcff5c4762dedde0c78c74b7ca01d0e8a3cdef46982
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / z4j_rqscheduler-1.12.0-py3-none-any.whl

Download URL z4j_rqscheduler-1.12.0-py3-none-any.whl
Size 15.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
044de4cce657e6e734989589d4ee0e4ae211772e85b1208cdf7320f831ea6aaf
BLAKE2b-256 checksum
How to use checksums
dc983a88bab6b9055781f9c50a546b5244ad816ea4bd7beec72c7972c3eaf940
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.12.0 This release

2 release files

1.11.0

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.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