From 43671f1aa32b4f5cf6bd0231cc27f28e22a24ec9 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Tue, 13 Feb 2024 17:41:55 +0000 Subject: [PATCH] Enable threading in development for queries and automations. --- packages/server/scripts/dev/manage.js | 1 - packages/server/src/environment.ts | 5 ----- 2 files changed, 6 deletions(-) diff --git a/packages/server/scripts/dev/manage.js b/packages/server/scripts/dev/manage.js index 1c7a70931b..509e9a05ac 100644 --- a/packages/server/scripts/dev/manage.js +++ b/packages/server/scripts/dev/manage.js @@ -38,7 +38,6 @@ async function init() { SELF_HOSTED: "1", DISABLE_ACCOUNT_PORTAL: "1", MULTI_TENANCY: "", - DISABLE_THREADING: "1", SERVICE: "app-service", DEPLOYMENT_ENVIRONMENT: "development", BB_ADMIN_USER_EMAIL: "", diff --git a/packages/server/src/environment.ts b/packages/server/src/environment.ts index fd4c3d205b..8e6866d5e4 100644 --- a/packages/server/src/environment.ts +++ b/packages/server/src/environment.ts @@ -100,11 +100,6 @@ const environment = { LOG_JS_ERRORS: process.env.LOG_JS_ERRORS, } -// threading can cause memory issues with node-ts in development -if (coreEnv.isDev() && environment.DISABLE_THREADING == null) { - environment._set("DISABLE_THREADING", "1") -} - // clean up any environment variable edge cases for (let [key, value] of Object.entries(environment)) { // handle the edge case of "0" to disable an environment variable