refactor scheduler to streamline source execution and improve maintenance
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user