Pause a sandbox
Resume paused state
Sandbox.connect(original_id) and public auto-resume traffic can find the
latest running execution.
Reusable snapshots
create_snapshot() briefly pauses the source, captures memory and mutable
rootfs state, resumes the source, and returns a reusable snapshot ID. Use
Sandbox.create(snapshot_id=...) to spawn independent children from it.
Behavior
- VM memory and mutable rootfs state come from hibernate or reusable snapshots.
- Shared volumes are remounted as external storage during resume and fork.
- Snapshot compatibility depends on runtime host and kernel compatibility; incompatible restores fail explicitly instead of silently starting from scratch.
Sandbox.get_info_by_id(id)is read-only and does not wake a paused alias.- Deleting a paused original ID removes the paused alias and its lifecycle routing target.
- Use lifecycle events to observe transition state and recovery failures.
Auto-resume
Create withon_timeout="pause", auto_resume=True when a public HTTP or
WebSocket request should wake a paused sandbox before the request is forwarded.
When the wake cannot complete in time, callers get 503 Service Unavailable
with Retry-After: 5.