Skip to content

Per-deployment restart block and jobs on the restart policy - #245

Merged
Shine-neko merged 12 commits into
mainfrom
scheduler/restart-manifest
Oct 19, 2026
Merged

Shine-neko merged 12 commits into
mainfrom
scheduler/restart-manifest

Conversation

@Shine-neko

Copy link
Copy Markdown
Contributor

Third step of the restart policy design (documentation/design/restart-policy.md).

  • Manifests accept a restart block overriding [server.restart] key by key (base, cap, stable_after, on_exhaustion, max_attempts, and backoff_limit for jobs). It is validated at apply time against the server policy; unknown keys and keys meaningless for the deployment's kind are rejected, by the CLI and the API.
  • Docker and Podman jobs are reconciled by the scheduler: a run that exits non-zero fails the job unless backoff_limit (default 0) allows more runs; a job that cannot start is retried on the backoff curve without limit and does not count against backoff_limit. A finished job keeps its instance and logs.
  • The legacy Docker job path is removed; Docker's apply only tears deleted deployments down.
  • e2e: T24 rewritten, T50 added. Documentation updated.

@Shine-neko
Shine-neko merged commit 6681829 into main Oct 19, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant