Documentation Index
Fetch the complete documentation index at: https://docs.slipway.sh/llms.txt
Use this file to discover all available pages before exploring further.
Status state machine
Both convoys and instances share the same status enum.degraded is a soft state — a redeploy of the failing component flips the convoy or instance back to healthy.
Convoy primary instance
A convoy withenable_primary_instance=false is a pure definition. It has a row, components, vars, secrets — but no live deployment until a PR spawns an instance. Calling Deploy on a definition-only convoy errors with "convoy <id> has no primary instance".
With enable_primary_instance=true, the convoy itself runs at the tracked refs. Pushes to a tracked branch auto-redeploy the matching component in the primary instance (component-level autoRedeploy must also be on).
PR instance lifecycle
TTL
When a convoy is created withttlSeconds, the clock starts when the convoy or instance reaches healthy — not at create time. Build/deploy time doesn’t eat into the user’s preview window.
Convoy TTLs apply to the primary instance; instances inherit the convoy’s TTL unless overridden. When the timer fires, the env is torn down via the standard teardown path.
Refresh
TheRefresh action on an instance detail page:
- Loads the parent convoy’s components for the source-of-truth tracked refs.
- For every sibling component in the instance (i.e., not the triggering one), rewrites its
ref_valueto the parent’s current tracked ref. - Redeploys those siblings against the freshly resolved HEAD SHA.
- Leaves the triggering component untouched — that’s the PR’s territory.
main has moved on since the PR was opened and the reviewer wants the preview to pick up the latest baseline.
Teardown
DELETE /api/orgs/<slug>/environments/<envId> (or Teardown from the detail page):
- Flips status to
tearing_down. - Supersedes every in-flight component deploy.
- Deletes every namespace labelled
slipway.io/environment=<envId>. - Flips status to
torn_down. Row + log persist.
Cancellation semantics
When you cancel an individual deployment that’s part of a convoy or instance, slipway:- Marks the Deployment row
cancelled. - Does NOT tear down the component’s namespace — it’s shared with the previous successful deploy.