commit 413b319e9981accde7e636d476acc509c0ca2a5f
parent 538f6528a248814c093ba921b26684a7aaff8167
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Thu, 17 Sep 2026 14:57:12 -0400
boot: learn where the disks are, even when booting idle
One pass over the storage locations on every boot. It probes each (is the
disk here, and if not, where?) and, for a location the operator armed with
`autoRepoint`, re-points it to wherever the volume actually came up.
It is the only thing below the shutdown reaper that runs on an IDLE BOOT.
Probing is read-only, one findmnt per location, and it is exactly what a
machine that rebooted with its platter on a different mountpoint needs done
before anybody opens a page. What ARCHILYZER_IDLE_BOOT refuses is STARTING
WORK, so `enqueue: !idle` is the whole of the gate: an idle container learns
where its disks are and enqueues nothing.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat:
1 file changed, 24 insertions(+), 0 deletions(-)
diff --git a/editor/instrumentation.ts b/editor/instrumentation.ts
@@ -81,6 +81,30 @@ export async function register() {
/* a failed re-pause must not block server readiness */
}
+ // ONE PASS OVER THE STORAGE LOCATIONS, and it runs on an IDLE BOOT TOO —
+ // the only thing below the reaper that does.
+ //
+ // The pass probes each location (is the disk here, and if not, where?) and,
+ // for a location the operator armed with `autoRepoint`, re-points it to
+ // wherever the volume actually came up. Probing is read-only — one findmnt
+ // per location — and it is exactly what a machine that has just rebooted with
+ // its platter on a different mountpoint needs done before anybody opens a
+ // page. What idle boot refuses is STARTING WORK, so `enqueue: !idle` is the
+ // whole of the gate: an idle container learns where its disks are and
+ // enqueues nothing.
+ //
+ // Lazy-imported and `void`ed like everything else here: the controller pulls
+ // in execa transitively (Node-only), and a disk that cannot be probed must
+ // never block server readiness.
+ try {
+ const { runStorageBootPass } = await import(
+ "yt-dlp-transcript-common/controller/storageLocations"
+ );
+ void runStorageBootPass({ enqueue: !idle }).catch(() => {});
+ } catch {
+ /* a storage probe that fails to start must not block server readiness */
+ }
+
// Everything past here STARTS work. On an idle boot, nothing does.
if (idle) return;