From 9d335b7fb1c692275494d8836d8839f5dbaec18d Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Thu, 8 Feb 2024 00:56:45 +0100 Subject: [PATCH] Fix perRequestLimit --- packages/server/src/jsRunner/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/server/src/jsRunner/index.ts b/packages/server/src/jsRunner/index.ts index aab5a64098..20a48916c8 100644 --- a/packages/server/src/jsRunner/index.ts +++ b/packages/server/src/jsRunner/index.ts @@ -16,6 +16,7 @@ export function init() { vm = new IsolatedVM({ memoryLimit: env.JS_RUNNER_MEMORY_LIMIT, timeout: env.JS_PER_EXECUTION_TIME_LIMIT_MS, + perRequestLimit: env.JS_PER_REQUEST_TIME_LIMIT_MS, }).withHelpers() bbCtx.vm = vm