fix: address review findings on the memory safeguards

- kill the whole process group on git/nixpacks timeout so a hung docker build
  cannot block the build queue
- mark interrupted cloning/building/starting installations as error on boot
- keep a running installation served while it rebuilds, including failed builds
- time out Docker image calls inside the build queue
- make session touch best-effort

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Sonnet 5.5 committed 2026-10-19 05:31:08 +02:00
1 parent a999b8c694
commit 5fb1d6b0b4
12 files changed
+118 -23

No files matched your search

+3 -1
View File
@@ -41,7 +41,9 @@ Two families of actions, both in `apps/server/src/service/orchestrator.ts`:
reason). If the container no longer exists they fall back to Deploy when the installation
has a built image, and report an error otherwise.
The proxy only serves installations in status `running`, so a stopped or restarting
A build never touches the running container, so an installation that is `running` stays
`running` (and served) during and after a build, even a failed one; the failure shows in the
status detail. The proxy only serves installations in status `running`, so a stopped or restarting
installation answers 404 until it is healthy again. The per-container IP cache is dropped on
every start/stop/restart because the IP can change.