This commit is contained in:
2025-06-09 07:52:20 +09:00
parent bbff015899
commit 88c75fd87b
3 changed files with 3 additions and 14 deletions

View File

@ -1,7 +1,6 @@
import path from "path";
import { serve } from "@hono/node-server";
import { Hono } from "hono";
import "./services/batch-scheduler.js";
import { config, validateConfig } from "./services/config.js";
import { closeBrowser } from "./services/content-extractor.js";
@ -783,8 +782,7 @@ app.get("/episode/:episodeId", async (c) => {
// Catch-all for SPA routing
app.get("*", serveIndex);
// Batch processing - now using batch scheduler
console.log("🔄 Batch scheduler initialized and ready");
// Batch processing is managed by the admin server
// Graceful shutdown
process.on("SIGINT", async () => {
@ -810,7 +808,7 @@ serve(
console.log(`📡 Using configuration from: ${config.paths.projectRoot}`);
console.log(`🗄️ Database: ${config.paths.dbPath}`);
console.log(
`🔄 Batch scheduler is active and will manage automatic processing`,
`🔄 Batch processing is managed by admin server (port ${config.admin.port})`,
);
},
);