Skip to content

vllm.snapshot.manifest

Classes:

Functions:

ReadyMarker

Bases: BaseModel

Ready marker the child writes; unknown keys are ignored.

ReleaseMarker

Bases: BaseModel

Release marker the controller writes; unknown keys are ignored.

SnapshotAttachment

Bases: BaseModel

One generated file the artifact reproduces before CRIU reopens it.

digest is the sha256 of the captured bytes, or "cache" for warm state the restore never verifies: a target that already has its own is left alone, and only a missing one is written back. size is the byte count of the copy the artifact holds, checked before a restore installs it, so a copy truncated in transit fails the restore and not the engine.

SnapshotCompatibilityError

Bases: RuntimeError

The snapshot identity does not match the requested runtime.

SnapshotSecurityError

Bases: RuntimeError

The snapshot artifact does not meet the private-path contract.

_backfill_legacy_fields(payload, path)

Fill in manifest fields an artifact's era predates, or return None.

An artifact from before the work-dir fields existed kept its control files in the artifact itself. A payload carrying some but not all of the fields is no format the feature ever wrote and returns None.

_require_trusted_path_chain(path, *, what)

Reject paths whose components can be replaced by untrusted users.

read_manifest(path)

Read a snapshot published by atomically installing its manifest.

validate_artifact_root(path, *, creating)

Validate that an artifact path cannot be replaced by another user.

validate_identity(expected, actual)

Require an exact match for every field that can affect compatibility.

write_manifest_atomic(path, manifest)

Write a new private manifest and make its directory entry durable.