Skip to content

Checkpoints

Resolve tenant checkpoints and create runtime checkpoints.

class CheckpointManager

This type is created by the SDK; do not construct it directly.

const manager = client.checkpoints;

Delete a checkpoint by UUID or display name.

CheckpointManager.delete(id: string): Promise<void>
NameTypeDefaultDescription
idstringRequiredResource UUID or display name.
  • Promise<void>

Resolve a checkpoint by UUID or display name.

CheckpointManager.get(id: string): Promise<CheckpointInfo>
NameTypeDefaultDescription
idstringRequiredResource UUID or display name.
  • Promise<CheckpointInfo>

List tenant checkpoints, optionally including system checkpoints.

CheckpointManager.list(options: { includeSystem?: boolean } = {}): Promise<CheckpointInfo[]>
NameTypeDefaultDescription
options{ includeSystem?: boolean }{}Checkpoint visibility options.
  • Promise<CheckpointInfo[]> — Checkpoint metadata ordered by the API.
const checkpoints = await client.checkpoints.list();
const ready = checkpoints.filter((checkpoint) => checkpoint.state === "ready");

Wait until a checkpoint is ready or has failed.

CheckpointManager.waitUntilReady(id: string, options: WaitOptions = {}): Promise<CheckpointInfo>
NameTypeDefaultDescription
idstringRequiredResource UUID or display name.
optionsWaitOptions{}Options that control the operation.
  • Promise<CheckpointInfo>

Creates, lists, and deletes checkpoints for one runtime.

class RuntimeCheckpointManager

This type is created by the SDK; do not construct it directly.

const manager = runtime.checkpoints;

Create a checkpoint from this runtime and optionally wait until ready.

RuntimeCheckpointManager.create(
kind: string = "full",
name?: string | null,
options: CheckpointCreateOptions = {},
): Promise<CheckpointInfo>
NameTypeDefaultDescription
kindstring"full"Checkpoint kind. The public API currently accepts "full".
name?string | nullOptionalOptional checkpoint display name.
optionsCheckpointCreateOptions{}Readiness polling options.
  • Promise<CheckpointInfo> — Metadata for the created checkpoint.
  • Error If an unsupported checkpoint kind is requested.
const checkpoint = await runtime.checkpoints.create("full", "worker-ready");

Delete one of this runtime’s checkpoints.

RuntimeCheckpointManager.delete(id: string): Promise<void>
NameTypeDefaultDescription
idstringRequiredResource UUID or display name.
  • Promise<void>

List checkpoints created from this runtime.

RuntimeCheckpointManager.list(): Promise<CheckpointInfo[]>
  • Promise<CheckpointInfo[]>