Skip to content

Commit f4b0544

Browse files
docs: document runner failure session retention
Co-Authored-By: Oz <oz-agent@warp.dev>
1 parent 3fefe16 commit f4b0544

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎src/content/docs/factories/factory-as-code.mdx‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ Optional. Each file defines a runner: the compute a run executes on. The runner'
449449
description: Linux runner for payments builds and tests
450450
setupCommands:
451451
- corepack enable
452+
failureSessionRetentionMinutes: 15
452453
instanceShape:
453454
vcpus: 4
454455
memoryGb: 8
@@ -467,6 +468,12 @@ Optional. Shell commands run in order while the sandbox is prepared.
467468

468469
Optional. The compute size, as `vcpus` and `memoryGb`. Omit it to take the workspace default.
469470

471+
### `failureSessionRetentionMinutes`
472+
473+
Optional. An integer from `1` through `60` that keeps a failed run's session open for inspection. Activity in the session restarts this idle window. There is no runner-level default: the runner value overrides the run environment's setting, while an omitted value uses the environment's setting or tears down the session immediately when neither is set.
474+
475+
The value must not exceed the maximum runtime available to the sandbox. Warp disables retention for a run when the value exceeds that limit, and the sandbox's runtime limit can end the session before the full idle window elapses. Secrets remain in the sandbox, and compute credits may apply while the session stays open.
476+
470477
### `platform`
471478

472479
The operating system and architecture. `os` is `linux` (the default) or `macos`, and `arch` is `x86_64` (the default on Linux) or `aarch64` (the only option on macOS). Linux runners require `linux.dockerImage`, the container image the sandbox boots, so every Linux runner declares a `platform` section. macOS runners accept an optional `mac.version` (`"14"`, `"15"`, `"26"`, or `"27"`; quote it, and it defaults to `"26"`).

0 commit comments

Comments
 (0)