vllm.snapshot.file_control
¶
Private, one-shot file control for an external startup capturer.
Classes:
-
Activation–Fresh deployment context, supplied after native CUDA restore/unlock.
-
FileSnapshotControl–The capturer provides a fresh private directory for every activation.
Activation
¶
Bases: BaseModel
Fresh deployment context, supplied after native CUDA restore/unlock.
Source code in vllm/snapshot/file_control.py
FileSnapshotControl
¶
The capturer provides a fresh private directory for every activation.
It must capture before writing activation.json. A challenge generated afterward prevents a release saved by an earlier copy from being replayed. The capturer owns artifact compatibility, namespace/stdio restoration and native completion. This protocol does not invoke or retry native recovery.
Methods:
-
publish_ready–Publish only after all worker preparation and rehearsal complete.
-
wait_for_activation–Require fresh native completion and a response to a new challenge.
-
write_error–Retain the primary failure even if restored standard streams fail.
-
write_status–Record recovery progress; validated is not HTTP serving readiness.
Source code in vllm/snapshot/file_control.py
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 | |
publish_ready(oracle)
¶
Publish only after all worker preparation and rehearsal complete.
Source code in vllm/snapshot/file_control.py
wait_for_activation()
async
¶
Require fresh native completion and a response to a new challenge.
Source code in vllm/snapshot/file_control.py
write_error(phase, error)
¶
Retain the primary failure even if restored standard streams fail.
Source code in vllm/snapshot/file_control.py
write_status(phase)
¶
Record recovery progress; validated is not HTTP serving readiness.