z4j scheduler adapter for arq cron jobs (Apache 2.0)
Project description
z4j-arqcron
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
z4j-arq, engine adapter
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
- 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)
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
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.4.0.tar.gz.
File metadata
- Download URL: z4j_arqcron-1.4.0.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8f48daa6d65d1a1a909f60d58c106a933a443cb7f35264e233f8d4f5e9081fd
|
|
| MD5 |
a2ba5011c1564c3c4f85ce241389895a
|
|
| BLAKE2b-256 |
d350fc3619e91cdd515de25983aa4446afca1f32d84d5c5fcff028db863bd7a3
|
File details
Details for the file z4j_arqcron-1.4.0-py3-none-any.whl.
File metadata
- Download URL: z4j_arqcron-1.4.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60ccb4fdf5aa33b324cb207677a3b3007a5b30d320a519f0aee60c9e39c4313a
|
|
| MD5 |
1e9fd9e5e44836e2e07777c27eda6e90
|
|
| BLAKE2b-256 |
2414b84711cdabe9397fa7f3e029384215b22f75094b7a6b27977fc99203c0be
|