Skip to content

0.1.0-preview.5 — the scheduling train

Pre-release
Pre-release

Choose a tag to compare

@omercelikdev omercelikdev released this 28 Jul 13:32
· 297 commits to main since this release
37e1d09

The scheduling train. The admin contract's Revision R2 gives the console the other half
of what a fleet IS — its scheduler, its triggers, its calendars, its history — and the
console grows the screens to drive it, pause-all included. Plus two fixes every
single-app adopter feels on their first screen. Upgrade guide:
docs/upgrades/0.1.0-preview.5.md (one migration, no breaking API changes).

Fixed

  • Goldpath.Console: an app that configures no service no longer warns its operator
    about a missing one.
    console.config.json answered {"services":[]} for an
    unconfigured registry; the console reads an empty registry as a BROKEN one, so every
    single-app adopter — the common case — met “the service registry lists no service with a
    name” on their first screen. The endpoint now answers 404 (no registry), which the
    console has always read as “this service only”, silently. No configuration changes.
  • A paused job looked exactly like a running one. The console read job.paused and
    job.nextFireTime, which GoldpathJobInfo has never carried. Both are now derived from
    the job's triggers, where the truth lives.

Added

  • The scheduling surface (Goldpath.Jobs, admin contract revision R2). The console
    could drive what the modules DO but only half of what a fleet IS. Now on the contract:
    GET /fleets/{fleet}/status — the fleet as the STORE sees it (job count, cluster
    members with their check-ins, and whether pause-all has stopped it), plus the instance
    the caller is connected THROUGH, named separately because Quartz's metadata is
    per-instance and a management head reports standby while the executors run; a trigger
    payload that carries what a cron string cannot
    explain (type, timezone, misfire instruction, priority, start/end, and a simple
    trigger's interval, repeat count and times-triggered); runs filterable by ?status=,
    ?from=, ?to= with keyset paging via ?afterId=; POST/DELETE on
    /fleets/{fleet}/jobs/{job}/triggers[/{name}] so a declared job can carry a second
    schedule; and the job's data map, read-only.
  • GoldpathJobRun.TriggeredBy — Scheduled, Manual, Rerun or Replay. An
    unstamped fire is Scheduled by definition, so the column never invents an operator who
    was not there.
  • The console's scheduling surface (U5). The Runs section opens into four: the fleet
    (state, cluster members, and the durable pause-all), its jobs with the triggers that
    decide when they run (add, remove, reschedule, and a read-only job data map), its
    calendars, and a run history filterable by state and date over a keyset walk. Reaching
    pause-all from a screen is new — it is the verb an operator wants at 03:00 and the
    console could not send it before.

Migration required

One nullable column (TriggeredBy on the runs table). Generate it with
goldpath db add AddJobTriggeredBy after taking this train; existing rows keep null,
which the console reads as "not recorded" rather than guessing.

Refused, deliberately

No route creates or deletes a JOB, and there is no endpoint that lists job classes —
composition is the manifest's and the code's (ADR-0001). The refusal is asserted by a test
over the route table, not just written down.

Upgrade guide: docs/upgrades/0.1.0-preview.5.md