Skip to main content

z4j scheduler adapter for APScheduler (Apache 2.0)

Project description

z4j-apscheduler

PyPI version Python License

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.

Compatibility

  • APScheduler 3.8+ and <4 (capped below the APScheduler 4.x rewrite)
  • Python 3.10+

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

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

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_apscheduler-1.6.7.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

z4j_apscheduler-1.6.7-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file z4j_apscheduler-1.6.7.tar.gz.

File metadata

  • Download URL: z4j_apscheduler-1.6.7.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for z4j_apscheduler-1.6.7.tar.gz
Algorithm Hash digest
SHA256 0ff478e6f89109b88fd524b371e15f810f9ffc4a4057631d014aea135c9f73c9
MD5 a70e808873020f5c7d2d90a2fadaa94f
BLAKE2b-256 95dad2ae6549ed999ff608d4d0d5bb596cd51d006cfbd45744b6bb5ec17a9ba8

See more details on using hashes here.

File details

Details for the file z4j_apscheduler-1.6.7-py3-none-any.whl.

File metadata

File hashes

Hashes for z4j_apscheduler-1.6.7-py3-none-any.whl
Algorithm Hash digest
SHA256 1a9a629661569a922c11b37f8c1b9080db66ce1952655a8349440cd1a0149329
MD5 0a5499e192e2c2f5065a8dcbecb1783b
BLAKE2b-256 0c4b3542e42e03e099feb6f2781764770e6aeb58eea8b5ce90698b79f924fb14

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