refactor scheduler to streamline source execution and improve maintenance

This commit is contained in:
ImBenji
2026-04-17 01:31:28 +01:00
parent 01bc624a24
commit 153062d1f4
2 changed files with 33 additions and 23 deletions
+1 -5
View File
@@ -2,7 +2,7 @@ const Fastify = require('fastify');
const articleRoutes = require('./src/routes/articles');
const statusRoutes = require('./src/routes/status');
const config = require('./src/config');
const { startScheduler, runAllIngestions } = require('./src/scheduler');
const { startScheduler } = require('./src/scheduler');
const app = Fastify({ logger: true });
@@ -14,10 +14,6 @@ app.get('/', async () => ({ ok: true }));
async function start() {
await app.listen({ port: config.server.port, host: config.server.host });
runAllIngestions().catch((error) => {
app.log.error(error);
});
startScheduler();
}