mirror of
https://github.com/Dasemu/remote-mcp-manager.git
synced 2026-11-26 23:36:31 +00:00
fix: address review findings on the memory safeguards
- kill the whole process group on git/nixpacks timeout so a hung docker build cannot block the build queue - mark interrupted cloning/building/starting installations as error on boot - keep a running installation served while it rebuilds, including failed builds - time out Docker image calls inside the build queue - make session touch best-effort Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a999b8c694
commit
5fb1d6b0b4
12 files changed
+118
-23
No files matched your search
@@ -3,6 +3,7 @@ import express from "express";
|
||||
import session from "express-session";
|
||||
import { config } from "./config/env.js";
|
||||
import { db } from "./db/index.js";
|
||||
import { reconcileInterruptedInstallations } from "./db/installations.js";
|
||||
import { getActiveProxyRequests, handleMcpProxyRequest } from "./proxy/mcpProxy.js";
|
||||
import { authRouter } from "./api/auth.js";
|
||||
import { installationsRouter } from "./api/installations.js";
|
||||
@@ -14,6 +15,9 @@ if (!config.sessionSecret) {
|
||||
throw new Error("SESSION_SECRET env var must be set");
|
||||
}
|
||||
|
||||
const interrupted = reconcileInterruptedInstallations();
|
||||
if (interrupted > 0) console.warn(`marked ${interrupted} interrupted installation(s) as error after restart`);
|
||||
|
||||
const app = express();
|
||||
app.set("trust proxy", 1);
|
||||
app.use(
|
||||
|
||||
Reference in new issue
Block a user