/** * Next.js server startup hook — starts the render-pipeline reaper * (RenderPipeline2 §7.7, studio decision 18.1-Q8). The reaper requeues or * fails jobs whose lease expired, marks silent machines OFFLINE, and prunes * old heartbeats. This is the only background job the web app runs. */ export async function register() { if (process.env.NEXT_RUNTIME === "nodejs") { const { startReaper } = await import("@/lib/render-pipeline/reaper"); startReaper(); } }