From 010b72be18f646a3c0949468ce7f1e5171d3df30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20=C3=81ngel?= Date: Mon, 4 Mar 2019 16:38:07 +0100 Subject: [PATCH] Launch queue cron job --- init.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init.js b/init.js index 332431a63..563c14bf6 100644 --- a/init.js +++ b/init.js @@ -20,6 +20,7 @@ import { WazuhReportingRoutes } from './server/routes/wazuh-reporting'; import { WazuhUtilsRoutes } from './server/routes/wazuh-utils'; import { IndexPatternCronJob } from './server/index-pattern-cron-job'; import { log } from './server/logger'; +import { Queue } from './server/jobs/queue'; export function initApp(server) { const monitoringInstance = new Monitoring(server); @@ -39,6 +40,7 @@ export function initApp(server) { WazuhApiElasticRoutes(server); monitoringInstance.run(); indexPatternCronJobInstance.run(); + Queue.launchCronJob(); WazuhApiRoutes(server); WazuhReportingRoutes(server); WazuhUtilsRoutes(server);