Skip to main content

z4j scheduler adapter for arq cron jobs (Apache 2.0)

Project description

z4j-arqcron

PyPI version Python License

The arq cron-jobs scheduler adapter for z4j.

Surfaces every cron job your arq Settings class registers on the dashboard's Schedules page, read, enable, disable, trigger.

What it ships

Capability Notes
List schedules every cron_jobs entry on your arq Settings
Read by registered name
Enable / disable via consumer-side gating
Trigger now enqueues the task immediately, outside the schedule
Boot inventory full snapshot at agent connect; existing cron jobs show up without editing

arq cron jobs are defined declaratively on the WorkerSettings class, so create / update / delete are intentionally out of scope, those need a deploy round-trip. The dashboard hides buttons it can't honor.

Install

pip install z4j-arq z4j-arqcron
from arq import cron
from z4j_bare import install_agent
from z4j_arq import ArqEngineAdapter
from z4j_arqcron import ArqCronAdapter

class WorkerSettings:
    redis_settings = ...
    cron_jobs = [
        cron(cleanup, minute=set(range(0, 60, 5))),
    ]

install_agent(
    engines=[ArqEngineAdapter(settings=WorkerSettings)],
    schedulers=[ArqCronAdapter(settings=WorkerSettings)],
    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 arq's worker loop or your job code.
  • The cron-jobs registry is read-only at runtime; the adapter only observes, it does not rewrite WorkerSettings.

Documentation

Full docs at z4j.dev/schedulers/arq-cron/.

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_arqcron-1.6.0.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

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

z4j_arqcron-1.6.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for z4j_arqcron-1.6.0.tar.gz
Algorithm Hash digest
SHA256 3901958d99ec83404887c9c15e31fb5312aa10ad34efb9aecc508e3478b88b3e
MD5 65cd32097ff00e9c6c80960db8eb57ee
BLAKE2b-256 7121e5c4b576a71173f26ad5e2450f060fcdf342710a59a3d63d29d242389802

See more details on using hashes here.

File details

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

File metadata

  • Download URL: z4j_arqcron-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for z4j_arqcron-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 064beb877a7e7e4763fab0b63d92107b7ef9312f8099574a9b6f2b630187c32d
MD5 7cdec50549033f9b53c74dbc5dc9d621
BLAKE2b-256 37b6b24ea0010219fcfaa417236c0d3bb14b15986aac0daea0baa8d66d7b19b8

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