jadpo schedules
On this page
Watch and control schedules.
Every schedule's state and runs are recorded in the database its state is kept in (area 12). jadpo schedules lists each schedule with its last run, when it is next due or that it is paused, and the alerts that hold: no successful run within twice its interval, ticks no longer arriving, a run past 80% of the 15-minute limit, three failures in a row, or a lease held past its expiry. history shows a schedule's runs and skipped ticks, newest first, 20 a page, and its metrics: runs, failures, skipped ticks, duration and delay. pause and resume stop and start its due ticks running it. run runs it now, under its lease, so it never runs twice at once: in this process against the database a running jadpo dev started, and otherwise by asking the app's own next tick, waiting for that run's record. The database is the one --url names, or the one its connection's setting gives, or the one a running jadpo dev started. Times are in UTC.
jadpo schedules [action] [name]Arguments
action(optional): What to do: run, pause, resume or history, or nothing to list themname(optional): The schedule's name
Flags
--url <url>: The database the schedules' state is in--page <n>: Which page of history, from 1, newest first
On every command
--json: Print data for tools instead of text--help: Show every flag, with examples--color <when>: Choose when to use colour
jadpo schedules --json writes one JSON document to standard output instead of text, with the same exit code. The document has schemaVersion, command ("schedules"), ok, data (what the command produced, null when it failed) and diagnostics (each error with its rule, reason, next and help). A command that needs a terminal refuses --json and names the flags that do the same job.
Examples
# See every schedule, its last run and what is nextjadpo schedules# See a schedule's past runs and its metricsjadpo schedules history nightly_digest# Stop a schedule running until it is resumedjadpo schedules pause nightly_digest# Run a schedule nowjadpo schedules run nightly_digest
Errors
cli.schedules_arguments: Schedules command has invalid argumentsschedules.lease_held: Schedule is already runningschedules.no_tick: No tick picked up the run asked forschedules.run_failed: Schedule's run failedschedules.unavailable: Schedules' database couldn't be readtoolchain.project_not_found: Project could not be found
Markdown for agents: /docs/jadpo-schedules.md.Built from Jadpo main at a707efb.