Gateway: eager-init QMD backend on startup

This commit is contained in:
Vignesh Natarajan
2026-02-07 19:38:04 -08:00
committed by Vignesh
parent ef4a0e92b7
commit efc79f69a2
5 changed files with 97 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ import {
scheduleRestartSentinelWake,
shouldWakeFromRestartSentinel,
} from "./server-restart-sentinel.js";
import { startGatewayMemoryBackend } from "./server-startup-memory.js";
export async function startGatewaySidecars(params: {
cfg: ReturnType<typeof loadConfig>;
@@ -150,6 +151,10 @@ export async function startGatewaySidecars(params: {
params.log.warn(`plugin services failed to start: ${String(err)}`);
}
void startGatewayMemoryBackend({ cfg: params.cfg, log: params.log }).catch((err) => {
params.log.warn(`qmd memory startup initialization failed: ${String(err)}`);
});
if (shouldWakeFromRestartSentinel()) {
setTimeout(() => {
void scheduleRestartSentinelWake({ deps: params.deps });