z4j scheduler adapter for APScheduler (Apache 2.0)
Project description
z4j-apscheduler
The APScheduler adapter for z4j.
Surfaces APScheduler jobs on the dashboard's Schedules page, read, create, update, enable, disable, trigger, delete. Engine-agnostic: works alongside any z4j engine adapter, or as a standalone scheduler in projects without a queue engine.
What it ships
| Capability | Notes |
|---|---|
| List schedules | every job APScheduler currently tracks |
| Create schedule | date / interval / cron triggers |
| Update | trigger spec, args, kwargs, paused flag |
| Enable / disable | via APScheduler's pause / resume |
| Trigger now | runs the job immediately, outside the schedule |
| Delete | clean removal from the jobstore |
| Boot inventory | full snapshot at agent connect; existing jobs show up without editing |
Supports every APScheduler jobstore: in-memory, SQLAlchemy (Postgres / SQLite / MySQL), MongoDB, Redis.
Install
pip install z4j-apscheduler
from apscheduler.schedulers.background import BackgroundScheduler
from apscheduler.triggers.cron import CronTrigger
from z4j_bare import install_agent
from z4j_apscheduler import APSchedulerAdapter
scheduler = BackgroundScheduler()
scheduler.add_job(my_func, CronTrigger(minute="*/5"), id="cleanup")
scheduler.start()
install_agent(
engines=[], # APScheduler runs jobs in-process; no separate engine
schedulers=[APSchedulerAdapter(scheduler=scheduler)],
brain_url="https://brain.example.com",
token="z4j_agent_...",
project_id="my-project",
)
Reliability
- No exception from the adapter ever propagates back into APScheduler or your job code.
- Jobstore writes use APScheduler's normal transactional semantics; the adapter only observes and surfaces, it does not rewrite the store.
Documentation
Full docs at z4j.dev/schedulers/apscheduler/.
License
Apache-2.0, see LICENSE.
Links
- Homepage: https://z4j.com
- Documentation: https://z4j.dev
- PyPI: https://pypi.org/project/z4j-apscheduler/
- Issues: https://github.com/z4jdev/z4j-apscheduler/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_apscheduler-1.5.0.tar.gz.
File metadata
- Download URL: z4j_apscheduler-1.5.0.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
973014e1e1a9abc4540548e21c500a78f7dcf9fcac1dde7ae3f69c4a74c8995d
|
|
| MD5 |
cc11a67fd10a1d9c288f9d746ed21650
|
|
| BLAKE2b-256 |
222847816d88e8f9c83f06671f2ad1d2c4a1a7bd4b793bb7c0cb76d8f9a91607
|
File details
Details for the file z4j_apscheduler-1.5.0-py3-none-any.whl.
File metadata
- Download URL: z4j_apscheduler-1.5.0-py3-none-any.whl
- Upload date:
- Size: 10.4 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 |
227e7c1c230f80d20b149575ff225f89b715b6e278d4aebd03bab4ee1fd16819
|
|
| MD5 |
7093d630606dc7838e3ce2b148d38595
|
|
| BLAKE2b-256 |
cbe265c2f7e9cc9de0835144a6064bd48b9c78a3392b43183dc6892573e63c29
|