Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
resolve merge conflict
Maidul Islambd8c17d720f7
diff --git a/backend/src/index.ts b/backend/src/index.tsindex 994e24cc1d..3d6dfaaa9d 100644--- a/backend/src/index.ts+++ b/backend/src/index.ts@@ -223,21 +223,25 @@ const main = async () => {// await createTestUserForDevelopment();setUpHealthEndpoint(server);- server.on("close", async () => {++ const serverCleanup = async () => {await DatabaseService.closeDatabase();- // TODO: prevent queue from trying to reconnect with redis after .close- syncSecretsToThirdPartyServices.close()- githubPushEventSecretScan.close()- });+ syncSecretsToThirdPartyServices.close();+ githubPushEventSecretScan.close();- process.on("SIGINT", function () {- server.close();process.exit(0);+ }++ process.on("SIGINT", function () {+ server.close(async () => {+ await serverCleanup()+ });});process.on("SIGTERM", function () {- server.close();- process.exit(0);+ server.close(async () => {+ await serverCleanup()+ });});return server;