Enable threading in development for queries and automations.

This commit is contained in:
mike12345567 2024-02-13 17:41:55 +00:00
parent f8073c3f5a
commit 43671f1aa3
2 changed files with 0 additions and 6 deletions

View File

@ -38,7 +38,6 @@ async function init() {
SELF_HOSTED: "1", SELF_HOSTED: "1",
DISABLE_ACCOUNT_PORTAL: "1", DISABLE_ACCOUNT_PORTAL: "1",
MULTI_TENANCY: "", MULTI_TENANCY: "",
DISABLE_THREADING: "1",
SERVICE: "app-service", SERVICE: "app-service",
DEPLOYMENT_ENVIRONMENT: "development", DEPLOYMENT_ENVIRONMENT: "development",
BB_ADMIN_USER_EMAIL: "", BB_ADMIN_USER_EMAIL: "",

View File

@ -100,11 +100,6 @@ const environment = {
LOG_JS_ERRORS: process.env.LOG_JS_ERRORS, 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 // clean up any environment variable edge cases
for (let [key, value] of Object.entries(environment)) { for (let [key, value] of Object.entries(environment)) {
// handle the edge case of "0" to disable an environment variable // handle the edge case of "0" to disable an environment variable