vllm.snapshot.manifest
¶
Classes:
-
ReadyMarker–Ready marker the child writes; unknown keys are ignored.
-
ReleaseMarker–Release marker the controller writes; unknown keys are ignored.
-
SnapshotAttachment–One generated file the artifact reproduces before CRIU reopens it.
-
SnapshotCompatibilityError–The snapshot identity does not match the requested runtime.
-
SnapshotSecurityError–The snapshot artifact does not meet the private-path contract.
Functions:
-
read_manifest–Read a snapshot published by atomically installing its manifest.
-
validate_artifact_root–Validate that an artifact path cannot be replaced by another user.
-
validate_identity–Require an exact match for every field that can affect compatibility.
-
write_manifest_atomic–Write a new private manifest and make its directory entry durable.
ReadyMarker
¶
Bases: BaseModel
Ready marker the child writes; unknown keys are ignored.
Source code in vllm/snapshot/manifest.py
ReleaseMarker
¶
Bases: BaseModel
Release marker the controller writes; unknown keys are ignored.
Source code in vllm/snapshot/manifest.py
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.
Source code in vllm/snapshot/manifest.py
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.
Source code in vllm/snapshot/manifest.py
_require_trusted_path_chain(path, *, what)
¶
Reject paths whose components can be replaced by untrusted users.
Source code in vllm/snapshot/manifest.py
read_manifest(path)
¶
Read a snapshot published by atomically installing its manifest.
Source code in vllm/snapshot/manifest.py
validate_artifact_root(path, *, creating)
¶
Validate that an artifact path cannot be replaced by another user.
Source code in vllm/snapshot/manifest.py
validate_identity(expected, actual)
¶
Require an exact match for every field that can affect compatibility.
Source code in vllm/snapshot/manifest.py
write_manifest_atomic(path, manifest)
¶
Write a new private manifest and make its directory entry durable.