close all queues

This commit is contained in:
Maidul Islam
2023-08-10 19:13:09 -04:00
parent dfe95ac773
commit b11cd29943
5 changed files with 17 additions and 4 deletions
+6 -1
View File
@@ -18,7 +18,7 @@ import {
backfillServiceTokenMultiScope,
backfillTrustedIps
} from "./backfillData";
import {
import {
reencryptBotOrgKeys,
reencryptBotPrivateKeys,
reencryptSecretBlindIndexDataSalts
@@ -26,6 +26,7 @@ import {
import {
getMongoURL,
getNodeEnv,
getRedisUrl,
getSentryDSN
} from "../../config";
import { initializePassport } from "../auth";
@@ -41,6 +42,10 @@ import { initializePassport } from "../auth";
* - Re-encrypting data
*/
export const setup = async () => {
if (await getRedisUrl() === undefined || await getRedisUrl() === "") {
console.error("WARNING: Redis is not yet configured. Infisical may not function as expected without it.")
}
await validateEncryptionKeysConfig();
await TelemetryService.logTelemetryMessage();