13. Long-running workspaces through profiles without lifecycle limits
- Status: Accepted
- Date: 2026-10
Context
Workspaces are deleted when they reach their TTL or after a period of inactivity, and inactivity only counts requests the gateway proxies to the IDE or the test application. Work that runs for days with the IDE closed, such as training a model, therefore looks idle, and deleting the workspace stops it. The limits must stay for everyday workspaces, but some users need a way around them.
Three approaches were considered:
- A per-workspace hold that users set from the dashboard (“keep running until”), capped by the profile. It adds API surface and a second clock to the lifecycle rules.
- Counting CPU or GPU usage as activity. It depends on Prometheus, which is optional (ADR 0011), and a busy forgotten process still looks active.
- A profile without limits, granted to the teams that need it.
Decision
Long-running work is a profile choice. A profile with no defaultTTL and no
defaultInactivityTimeout puts its workspaces outside both limits, and
administrators grant it through Team.allowedProfiles. Unset and zero both
mean no limit, on the profile and on the Workspace, but a profile’s maxTTL
requires a positive TTL, so a zero cannot bypass the cap. The dashboard
labels such workspaces as long-running and asks their owners to delete them
when they are done.
Consequences
- No new API: the existing fields and lifecycle code already behave this way. Administrators decide who may run long jobs.
- Nothing reclaims a forgotten long-running workspace or the resources it holds, such as a GPU. A long TTL without an inactivity timeout is the middle ground.
- Switching profile means recreating the workspace. Files are kept (ADR 0003); running processes are not.
- Lifetime settings apply to existing workspaces: adding a TTL to a long-running profile deletes, at once, the workspaces already older than it.