Skip to content
Français

ResourcePhase

import type { ResourcePhase } from "@elie-laloum/outpost";

Lifecycle phase of a sandbox in its resource activity record; the record is removed after a clean release. Values: “allocating” (provider acquisition in progress), “ready” (sandbox started), “closing” (release in progress), “cleanup-failed” (release or workspace cleanup failed; resources may remain), “allocation-uncertain” (startup failed before the provider returned a lease, so a sandbox may exist without an owner).

Complete example and detailed rules.

export type ResourcePhase = (typeof resourcePhases)[number];