Skip to main content

Scheduler reliability

Know when a schedule should have fired and did not.

The brain watches every enabled interval and cron schedule and flags a misfire when an expected fire slips past its grace window, the signal that a scheduler process has died or fallen behind. Manual fires are attributed to the operator who triggered them, so a fire-now always has a name against it. Fire history is retained through Postgres range-partitioning so a busy fleet keeps its record without bloating a single table, and fire-variance metrics surface how far actual fire times drift from their schedule.

Ships with

  • Brain-side misfire detection: an enabled interval or cron schedule past its grace window is flagged
  • Per-operator fire attribution: a manual fire-now records who triggered it
  • Fire-history retention via Postgres range-partitioning
  • Fire-variance metrics show drift between expected and actual fire times
  • Misfires trigger automation rules, so a rule can notify the project the moment one is detected
  • z4j misfires --project <slug> lists detected misfires from the CLI (--json for scripting)

Highlights

  • A dead scheduler stops being a silent failure: the misfire is detected on the brain side
  • Misfires feed automation rules; a tripped schedule circuit breaker disables the schedule and writes an audit row
  • Fire attribution plus the audit chain together answer who fired what, and when

Dynamic scheduler

Edit schedules from the dashboard. Drives every engine.

z4j-scheduler is a separate companion process that fires schedules against any of the six engines z4j supports. Schedules live in z4j's database and can be edited from the dashboard, declaratively in app config, or via REST without restarting any daemon.

  • Engine-agnostic dispatch: Celery, RQ, Dramatiq, Huey, arq, taskiq
  • Live edit from dashboard, declarative reconciler, or REST
  • Per-schedule catch-up policy (skip / fire-one / fire-all)
  • CLI imports Celery beat, django-celery-beat, rq-scheduler, APScheduler, cron, Huey, arq, and taskiq; advisory exports target Celery, RQ, APScheduler, cron, Huey, arq, and taskiq (Dramatiq has no scheduler store, so both directions print guidance)
  • Postgres advisory-lock leader for HA

Related

More capabilities

Ready to try z4j?