Skip to main content

z4j scheduler adapter for rq-scheduler (Apache 2.0)

Project description

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, create, update, enable, disable, trigger, delete.

What it ships

Capability Notes
List schedules every job rq-scheduler currently tracks
Create schedule interval / cron / one-shot
Update schedule expression, args, kwargs, queue
Enable / disable via re-add / cancel
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

Install

pip install z4j-rq z4j-rqscheduler
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(queues=[queue])],
    schedulers=[RQSchedulerAdapter(scheduler=scheduler)],
    brain_url="https://brain.example.com",
    token="z4j_agent_...",
    project_id="my-project",
)

Pairs with

Reliability

  • No exception from the adapter ever propagates back into rq-scheduler or your job code.
  • Schedule writes to Redis are atomic; if z4j is unreachable, the local Redis write is never affected.

Documentation

Full docs at z4j.dev/schedulers/rq-scheduler/.

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_rqscheduler-1.4.0.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

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

z4j_rqscheduler-1.4.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file z4j_rqscheduler-1.4.0.tar.gz.

File metadata

  • Download URL: z4j_rqscheduler-1.4.0.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for z4j_rqscheduler-1.4.0.tar.gz
Algorithm Hash digest
SHA256 b3f3162f2a3254a9fa7f743b29fc4b8137cd29b212199f14ac1cd0d88652b97d
MD5 4d1a18166e6bf93e384f922e29317890
BLAKE2b-256 70813c9927eebcedcb4a06f9a668639b8b94e36cda6c665804bc2e461e59ec7b

See more details on using hashes here.

File details

Details for the file z4j_rqscheduler-1.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for z4j_rqscheduler-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f1c7eb278578f9c0ce1b0599f53d2d001a9cb923b129437995de3ae7751a0ff1
MD5 04e91e2c16c670908afd8d574c3a2ecb
BLAKE2b-256 943f7de39b5af95c46bf4165ef2ef9bffc1365210c71e5a3de226ce53a7eb0d8

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