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.6.0.tar.gz (14.1 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.6.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: z4j_rqscheduler-1.6.0.tar.gz
  • Upload date:
  • Size: 14.1 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.6.0.tar.gz
Algorithm Hash digest
SHA256 efb74486b7ff439cd9e4f0a502bdacffab88b08d79ce4cafe30b54df6b2173c3
MD5 d8b52c0231aa7059c2b1cfe40221b5c7
BLAKE2b-256 3426078094819c90bec0683666746ba46b1e230eea810a805e7b4fc0ce2f619f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for z4j_rqscheduler-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 303b9fd97451717babfda042dda9f41a4b491907e710fb5545ace96b211749d8
MD5 d1f3c4727d9dd7115fdfaf222ab5cb51
BLAKE2b-256 b2855c0397c656f734ed476cf085a019802d51e7a83bc2101b82a4f527efbb5d

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