diff --git a/src/util/customTransformer-v1.js b/src/util/customTransformer-v1.js index b6ed8f9654..ddc1cacd17 100644 --- a/src/util/customTransformer-v1.js +++ b/src/util/customTransformer-v1.js @@ -6,6 +6,7 @@ const logger = require('../logger'); const stats = require('./stats'); const userTransformTimeout = parseInt(process.env.USER_TRANSFORM_TIMEOUT || '600000', 10); +const ivmExecutionTimeout = parseInt(process.env.IVM_EXECUTION_TIMEOUT || '4000', 10); async function transform(isolatevm, events) { const transformationPayload = {}; @@ -24,7 +25,7 @@ async function transform(isolatevm, events) { new ivm.Reference(reject), sharedTransformationPayload, ], - { timeout: 4000 }, + { timeout: ivmExecutionTimeout }, ); } catch (error) { reject(error.message);