Skip to main content

z4j-arqcron

PyPI version Python License

The arq cron-jobs scheduler adapter for z4j.

Surfaces every cron job your arq WorkerSettings class registers on the dashboard's Schedules page, read-only (list and read).

Compatibility

  • arq 0.26+ and <1
  • Python 3.11+

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

What it ships

Capability Notes
List schedules every cron_jobs entry on your arq WorkerSettings
Read by registered name
Boot inventory full snapshot at agent connect; existing cron jobs show up without editing

This adapter is read-only by design. arq cron jobs are defined declaratively on the WorkerSettings class, and arq exposes no runtime enable/disable toggle or trigger-now primitive, so create / update / delete / enable / disable / trigger now are all out of scope, those need a deploy round-trip (or, for a one-off run, enqueue the underlying coroutine via ArqRedis.enqueue_job()). 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

async def cleanup(ctx):
    ...

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

install_agent(
    engines=[
        ArqEngineAdapter(
            redis_settings=WorkerSettings.redis_settings,
            function_names=["cleanup"],
        ),
    ],
    schedulers=[ArqCronAdapter(cron_jobs=WorkerSettings.cron_jobs)],
    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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: z4j_arqcron-1.8.0.tar.gz
  • Upload date:
  • Size: 10.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.8.0.tar.gz
Algorithm Hash digest
SHA256 06efa07568d2f189223b29dc2f7e498d7534d6bb5112c1102283f57fa8e5a547
MD5 0d3ec82a5ba6fc0f521a01f59d3915eb
BLAKE2b-256 42f536de54ace20df6282ed8ad5d69a940be157d14c5148f914d57eeaa7adb52

See more details on using hashes here.

File details

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

File metadata

  • Download URL: z4j_arqcron-1.8.0-py3-none-any.whl
  • Upload date:
  • Size: 9.3 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.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8f117dbbafeca1ea6998633b4d6cd729021c9320cd0b40052e9ab0b1897089e3
MD5 5cbf1efd234e8c3691c131baa20b4e55
BLAKE2b-256 a6b868095cf8fcedcaee5f16ba9109b7a5c33d6754ede40bc7090b4f04ce56e2

See more details on using hashes here.

Release history Release notifications | RSS feed

1.10.0

2 files

1.9.1

2 files

1.9.0

2 files

This release

1.8.0 This release

2 files

1.7.0

2 files

1.6.7

2 files

1.6.0

2 files

1.5.0

2 files

1.4.0

2 files

1.3.0

2 files

1.0.1

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page