Lifecycle
Wait for, keep alive, suspend, resume, restart, detach and delete a sandbox.
Wait for, keep alive, suspend, resume, restart, detach and delete a sandbox.
Lifecycle calls on a Sandbox handle. They act on the container or VM, locally or in the cloud.
Python programs usually use the high-level API instead: Sandbox lifecycle.
Methods of Sandbox.
Sandbox.wait_ready#Waits until every probe passes.
async def wait_ready(self, probes: List[ReadinessProbe], timeout_ms: int) -> None| Parameter | Type | Default |
|---|---|---|
probes | Vec<ReadinessProbe> | required |
timeout_ms | u32 | required |
Async · Raises CuaError
Sandbox.refresh#Fresh info (status from the provider).
async def refresh(self) -> SandboxInfoReturns SandboxInfo · Async · Raises CuaError
Sandbox.keep_alive#Extends a Fleet lease by seconds.
async def keep_alive(self, seconds: int) -> None| Parameter | Type | Default |
|---|---|---|
seconds | u32 | required |
Async · Raises CuaError
Sandbox.suspend#Suspends.
async def suspend(self) -> NoneAsync · Raises CuaError
Sandbox.resume#Resumes.
async def resume(self) -> NoneAsync · Raises CuaError
Sandbox.restart#Restarts.
async def restart(self) -> NoneAsync · Raises CuaError
Sandbox.detach#Managed Fleet claims: stop renewing the claim and forget the handle; the claim runs until its current shutdown time. Embedded runtime only (a daemon holds its claims by design).
def detach(self) -> NoneRaises CuaError
Sandbox.delete#Deletes (Fleet: releases the claim and an ephemeral pool).
async def delete(self) -> NoneAsync · Raises CuaError