Checkpoints
Resolve tenant checkpoints and create runtime checkpoints.
CheckpointManager declaration
Section titled “CheckpointManager declaration”class CheckpointManagerCheckpointManager access
Section titled “CheckpointManager access”This type is created by the SDK; do not construct it directly.
const manager = client.checkpoints;CheckpointManager methods
Section titled “CheckpointManager methods”delete()
Section titled “delete()”Delete a checkpoint by UUID or display name.
CheckpointManager.delete(id: string): Promise<void>Parameters
Section titled “Parameters”| Name | Type | Default | Description |
|---|---|---|---|
id | string | Required | Resource UUID or display name. |
Returns
Section titled “Returns”Promise<void>
Resolve a checkpoint by UUID or display name.
CheckpointManager.get(id: string): Promise<CheckpointInfo>Parameters
Section titled “Parameters”| Name | Type | Default | Description |
|---|---|---|---|
id | string | Required | Resource UUID or display name. |
Returns
Section titled “Returns”Promise<CheckpointInfo>
list()
Section titled “list()”List tenant checkpoints, optionally including system checkpoints.
CheckpointManager.list(options: { includeSystem?: boolean } = {}): Promise<CheckpointInfo[]>Parameters
Section titled “Parameters”| Name | Type | Default | Description |
|---|---|---|---|
options | { includeSystem?: boolean } | {} | Checkpoint visibility options. |
Returns
Section titled “Returns”Promise<CheckpointInfo[]>— Checkpoint metadata ordered by the API.
Examples
Section titled “Examples”const checkpoints = await client.checkpoints.list();const ready = checkpoints.filter((checkpoint) => checkpoint.state === "ready");waitUntilReady()
Section titled “waitUntilReady()”Wait until a checkpoint is ready or has failed.
CheckpointManager.waitUntilReady(id: string, options: WaitOptions = {}): Promise<CheckpointInfo>Parameters
Section titled “Parameters”| Name | Type | Default | Description |
|---|---|---|---|
id | string | Required | Resource UUID or display name. |
options | WaitOptions | {} | Options that control the operation. |
Returns
Section titled “Returns”Promise<CheckpointInfo>
RuntimeCheckpointManager
Section titled “RuntimeCheckpointManager”Creates, lists, and deletes checkpoints for one runtime.
RuntimeCheckpointManager declaration
Section titled “RuntimeCheckpointManager declaration”class RuntimeCheckpointManagerRuntimeCheckpointManager access
Section titled “RuntimeCheckpointManager access”This type is created by the SDK; do not construct it directly.
const manager = runtime.checkpoints;RuntimeCheckpointManager methods
Section titled “RuntimeCheckpointManager methods”create()
Section titled “create()”Create a checkpoint from this runtime and optionally wait until ready.
RuntimeCheckpointManager.create( kind: string = "full", name?: string | null, options: CheckpointCreateOptions = {},): Promise<CheckpointInfo>Parameters
Section titled “Parameters”| Name | Type | Default | Description |
|---|---|---|---|
kind | string | "full" | Checkpoint kind. The public API currently accepts "full". |
name? | string | null | Optional | Optional checkpoint display name. |
options | CheckpointCreateOptions | {} | Readiness polling options. |
Returns
Section titled “Returns”Promise<CheckpointInfo>— Metadata for the created checkpoint.
Throws
Section titled “Throws”ErrorIf an unsupported checkpoint kind is requested.
Examples
Section titled “Examples”const checkpoint = await runtime.checkpoints.create("full", "worker-ready");delete()
Section titled “delete()”Delete one of this runtime’s checkpoints.
RuntimeCheckpointManager.delete(id: string): Promise<void>Parameters
Section titled “Parameters”| Name | Type | Default | Description |
|---|---|---|---|
id | string | Required | Resource UUID or display name. |
Returns
Section titled “Returns”Promise<void>
list()
Section titled “list()”List checkpoints created from this runtime.
RuntimeCheckpointManager.list(): Promise<CheckpointInfo[]>Returns
Section titled “Returns”Promise<CheckpointInfo[]>