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

Uploaded Python 3

File details

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

File metadata

  • Download URL: z4j_arqcron-1.5.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.5.0.tar.gz
Algorithm Hash digest
SHA256 7d002d0100a8bc6ef23a3253b9a2d3f304937b4d1e156f7e12baf0c1ae90f08d
MD5 a645526287518b404d26dd7e893519f0
BLAKE2b-256 582c7510abdee6b02ab96f3f8a08d6732d871a191543820a58d04035d5b01fce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: z4j_arqcron-1.5.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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 124191aaeec59b05de24c588b97ccc1f33fab80b97eebde33beb068a31ba3242
MD5 7d7ac28bba7d578b48e5ddac2998fc1a
BLAKE2b-256 2ee599c71c0b44f716e9eed0f07ec3625465ae6b5ecf652641505c47e2714f35

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