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.

Compatibility

  • rq-scheduler 0.11+ (no upper cap)
  • Python 3.10+

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: z4j_rqscheduler-1.6.7.tar.gz
  • Upload date:
  • Size: 14.2 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.7.tar.gz
Algorithm Hash digest
SHA256 94ee8923f8f33aba632f66566f07a5979c3e1f94eaaaba7baf829dae7ccb28b4
MD5 b0a1e83948cbf88468df79f4afb66e79
BLAKE2b-256 aefea661405ed595e5ea03789fadeaba7e60e98743f249f08e26de86f7d83db0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for z4j_rqscheduler-1.6.7-py3-none-any.whl
Algorithm Hash digest
SHA256 04f46261cdee1a478c2cd8bcac200e4b61b3a0828639bc2e82397c3e5035ec08
MD5 a027e0f2a27f0e8b430d3f83ab4a77be
BLAKE2b-256 3b2ea663aa218f358e390059a74ae63fecd934c0e06971a04fa661d8e327a55d

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