diff --git a/backend/src/server/routes/index.ts b/backend/src/server/routes/index.ts index e0508a76a..c29fc1b1a 100644 --- a/backend/src/server/routes/index.ts +++ b/backend/src/server/routes/index.ts @@ -2431,25 +2431,22 @@ export const registerRoutes = async ( } } - if (!appCfg.isTestMode) { - await telemetryQueue.startTelemetryCheck(); - await telemetryQueue.startAggregatedEventsJob(); - await dailyResourceCleanUp.init(); - await healthAlert.init(); - await pkiSyncCleanup.init(); - await pamAccountRotation.init(); - await dailyReminderQueueService.startDailyRemindersJob(); - await dailyReminderQueueService.startSecretReminderMigrationJob(); - await dailyExpiringPkiItemAlert.startSendingAlerts(); - await pkiSubscriberQueue.startDailyAutoRenewalJob(); - await pkiAlertV2Queue.init(); - await certificateV3Queue.init(); - await microsoftTeamsService.start(); - await dynamicSecretQueueService.init(); - await eventBusService.init(); - } - await kmsService.startService(hsmStatus); + await telemetryQueue.startTelemetryCheck(); + await telemetryQueue.startAggregatedEventsJob(); + await dailyResourceCleanUp.init(); + await healthAlert.init(); + await pkiSyncCleanup.init(); + await pamAccountRotation.init(); + await dailyReminderQueueService.startDailyRemindersJob(); + await dailyReminderQueueService.startSecretReminderMigrationJob(); + await dailyExpiringPkiItemAlert.startSendingAlerts(); + await pkiSubscriberQueue.startDailyAutoRenewalJob(); + await pkiAlertV2Queue.init(); + await certificateV3Queue.init(); + await microsoftTeamsService.start(); + await dynamicSecretQueueService.init(); + await eventBusService.init(); // inject all services server.decorate("services", {