fix: tune codex queue minimax runtime

This commit is contained in:
Codex
2026-05-07 18:21:45 +00:00
parent 672c911e42
commit 34652e1731
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ services:
OPENAI_API_KEY: "${OPENAI_API_KEY:-}"
CRS_OAI_KEY: "${CRS_OAI_KEY:-}"
MINIMAX_API_KEY: "${UNIDESK_CODEX_QUEUE_MINIMAX_API_KEY:-}"
MINIMAX_API_BASE: "${UNIDESK_CODEX_QUEUE_MINIMAX_API_BASE:-https://api.minimax.io/v1}"
MINIMAX_API_BASE: "${UNIDESK_CODEX_QUEUE_MINIMAX_API_BASE:-https://api.minimaxi.com/v1}"
MINIMAX_MODEL: "${UNIDESK_CODEX_QUEUE_MINIMAX_MODEL:-MiniMax-M2.7}"
LOG_FILE: "/var/log/unidesk/${UNIDESK_LOG_PREFIX}_codex-queue.jsonl"
volumes:
@@ -1160,7 +1160,7 @@ async function route(req: Request): Promise<Response> {
}
prepareCodexHome();
Bun.serve({ hostname: config.host, port: config.port, fetch: route });
Bun.serve({ hostname: config.host, port: config.port, idleTimeout: 120, fetch: route });
logger("info", "service_started", { port: config.port, statePath: config.statePath, workdir: config.defaultWorkdir, defaultModel: config.defaultModel, judgeConfigured: config.minimaxApiKey.length > 0 });
for (const task of state.tasks) {
if (task.status === "running" || task.status === "judging") {