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.5.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.5.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: z4j_rqscheduler-1.5.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.5.0.tar.gz
Algorithm Hash digest
SHA256 451ae6f18ceb6a960362b8dc384875cf5647c917bd5e5b73dfe114572a05eab8
MD5 00dc96e351ed61e94ac731ed9831d20d
BLAKE2b-256 1759d1286baef2a6a36039e413405f2e34bed2039043a65a7638c5c65d9a181a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for z4j_rqscheduler-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0cae54ffdaddd98531774ddeca40a9af2f7ea139c73947721ebb36c33203102a
MD5 fb241f82d56250033f3f23e8fddb1ed4
BLAKE2b-256 c892049f9bd2a9e0f54f29f8ff240f98c324e0b7f4e5c06ed0a7efe8d59d8338

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