Close QVAC after GPU preflight
Rolling release / release (push) Failing after 21m6s

This commit is contained in:
2026-09-11 16:24:35 -04:00
parent 41ca9aee95
commit fee584673d
+16
View File
@@ -21,4 +21,20 @@ try {
} catch (error) {
console.error(`gpu-doctor: ${error.message}`);
process.exitCode = 1;
} finally {
// Resource discovery initializes QVAC handles even without loading a model.
// This one-shot command owns them and must close them before returning to
// first-run. Bound cleanup in case a native handle never settles.
const watchdog = setTimeout(() => {
console.error('gpu-doctor: QVAC cleanup timed out');
process.exit(1);
}, 5000);
try {
await Agent.engine.close();
} finally {
clearTimeout(watchdog);
}
// Bare addons may retain handles after close; this diagnostic has no more
// work to do. Never put this exit in the shared daemon/runtime lifecycle.
if (globalThis.Bare) Bare.exit(process.exitCode || 0);
}