mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 02:47:34 +00:00
Environment snapshots are built on a golden, so workspaces from them kept that golden's orcad and VM scripts after rotation (e.g. no files.archiveStart). Each 5-minute tick, after the golden tick, every environment whose active build's base_snapshot_id is not the current golden gets a background rebuild of the active build's config (only the base image changes), attributed to system:golden-refresh and billed like any build. The active build serves until the new one succeeds, then the newest-success activation swaps it atomically; the old snapshot stays for rollback; a failed rebuild keeps the active build, shows the usual failed build, and is not retried for that golden. At most 2 starts per tick and 3 builds in flight overall. startBuild accepts an explicit config for this.