Repository navigation
spov 0.12.0 runs jobs on a schedule: the same job on a cadence, hourly at most, on a hosted server. A pull-request job started from the browser can now leave its branch and its pull request to the goal.
Upgrading
- Update spov with
spov update, orbrew upgrade --cask spovfor a Homebrew install. - Run the migration on a hosted server. It adds the schedules and their run history (
00045_schedules).spov serve migrate upapplies it, as the Kamal and Kubernetes deploy steps already do. - The sandbox image is unchanged, so there is nothing to rebuild.
Scheduled jobs
A schedule is a stored job, either report or pr, with a cadence and an IANA time zone. Each run is an ordinary job, created as the schedule's owner and judged like any other.
-
Cadences:
- hourly, daily, weekly, or monthly (days 1 to 28);
- or five cron fields;
- at most once an hour.
-
Saving checks the job as a create would, without creating anything.
-
Who a run acts as: every run is created as the schedule's owner, and never with admin rights.
- Each fire checks the owner again, as a sign-in would.
- Someone removed from the allowlist, or a deleted service account, starts nothing.
- Removing a person pauses their schedules first.
-
Skips and failures:
- A run is skipped while the schedule's previous job is unfinished, or when you are at your job limit.
- If the server was down past one or more runs, the missed runs are recorded as one entry, and only the newest of them runs.
- Three failed runs in a row pause the schedule.
- Each schedule keeps its newest 50 runs in its history.
-
Limits: you can have 20 schedules. Run now starts a run immediately, and counts toward the same per-minute limit as starting a job or session.
-
In the browser: Schedules, reached from the Jobs page, lists your schedules. A schedule's page shows its next runs and its history, with each job linked, plus Run now, Pause, Resume and Delete. A job a schedule started says so on the jobs list and on its session page.
-
In the CLI:
spov jobs schedule create|list|show|edit|pause|resume|delete|run. It takes every flag ofspov jobs create, plus--hourly,--daily 09:30,--weekly "mon 09:00",--monthly,--cronand--tz, which defaults to this machine's zone. For example:spov jobs schedule create deps "update the dependencies" --repo acme/app --kind pr --daily 02:00
-
A local server answers that schedules need a hosted server.
-
Who owns the schedule matters. A service account's schedules keep running after the token that created them is revoked, until the account itself is deleted.
The pull-request policy in the browser
A pull-request job on /jobs/new, and in the schedule form, has a new Branch and pull request choice:
- A new branch and a pull request is spov's usual flow, and the default.
- The goal says how leaves the branch and how the pull request is opened to the goal. Use it to add to an open pull request's branch, or to follow your team's way of opening one.
It's the same setting as spov jobs create --pr-policy goal. With it, the agent is still told never to push to the default branch, and the job's pull request is looked up on its forge by branch. Branch protection on the forge is what actually guards the default branch.
Also in this release
- The fallback model list, used when models.dev can't be reached, is refreshed.