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.

Compatibility

  • arq 0.26+ and <1
  • Python 3.10+

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: z4j_arqcron-1.6.7.tar.gz
  • Upload date:
  • Size: 11.4 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.7.tar.gz
Algorithm Hash digest
SHA256 3d4076f7e001eba0e970e5f6ca583d159a21e216e5e79165aa7b1b03299b548a
MD5 d22d9d2be61da860f1bf48a5617eb6e2
BLAKE2b-256 532c0ffec2981af526a2b7a8d456e5c8f94b1a022e588dd5c6c73851e81749d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: z4j_arqcron-1.6.7-py3-none-any.whl
  • Upload date:
  • Size: 9.1 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 29e5567cd998b1277fc046756ae81be576315c1f367e0308ad6412c69284f9ac
MD5 f4bd61706878375131f3e180b301c982
BLAKE2b-256 6db19d1144021f56be6ed4116505b2a964c09f27c68757ba70249577ce9a0ab0

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