mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-07 10:18:57 +00:00
Launch queue cron job
This commit is contained in:
parent
bcd7c4671b
commit
010b72be18
2
init.js
2
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);
|
||||
|
Loading…
Reference in New Issue
Block a user