z4j-arqcron
The arq cron-jobs scheduler adapter for z4j.
Surfaces registered cron jobs from your arq WorkerSettings class that the
adapter can map 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 | registered cron_jobs entries that the adapter can map |
| 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
import os
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",
hmac_secret=os.environ["Z4J_HMAC_SECRET"],
)
Pairs with
z4j-arq, engine adapter
Reliability
- The cron-jobs registry is read-only at runtime; inventory reads do not
rewrite
WorkerSettings. A mapping failure aborts the authoritative snapshot so one bad row cannot false-delete a live schedule from the brain mirror.
Documentation
Full docs at z4j.dev/schedulers/arq-cron/.
License
Apache-2.0, see LICENSE.
Links
- Homepage: https://z4j.com
- Documentation: https://z4j.dev
- PyPI: https://pypi.org/project/z4j-arqcron/
- Issues: https://github.com/z4jdev/z4j-arqcron/issues
- Changelog: CHANGELOG.md
- Security: security@z4j.com (see SECURITY.md)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file z4j_arqcron-1.9.1.tar.gz.
File metadata
- Download URL: z4j_arqcron-1.9.1.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7352defdcd43975f418f3b9c046785de7c227c0a1c1eff3907121ba880827583
|
|
| MD5 |
4a62b25b204c5254e0107844dfbe8549
|
|
| BLAKE2b-256 |
6d001b0684ed9fdbd52ebf5bec473c9cfdeb0944cdb11b940fa57d23d5171992
|
File details
Details for the file z4j_arqcron-1.9.1-py3-none-any.whl.
File metadata
- Download URL: z4j_arqcron-1.9.1-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb7050bb5c2887e4f2abec246fcb2942918f26a5077a7d65963bae3130d59d7d
|
|
| MD5 |
2db0bf13df143819d9b53cfa163ba7db
|
|
| BLAKE2b-256 |
162c72b0afa6503c5cfbe3d8d2a6baef7b713a31686a0ed584fcb600589fc2c3
|