diff --git a/src/lambda/handler-runner/worker-thread-runner/workerThreadHelper.js b/src/lambda/handler-runner/worker-thread-runner/workerThreadHelper.js index 5839e0093..153b18ab4 100644 --- a/src/lambda/handler-runner/worker-thread-runner/workerThreadHelper.js +++ b/src/lambda/handler-runner/worker-thread-runner/workerThreadHelper.js @@ -2,10 +2,10 @@ import { env } from 'node:process' import { parentPort, workerData } from 'node:worker_threads' import InProcessRunner from '../in-process-runner/index.js' -const { functionKey, handlerName, handlerPath } = workerData +const { functionKey, handlerName, handlerPath, timeout } = workerData parentPort.on('message', async (messageData) => { - const { context, event, port, timeout } = messageData + const { context, event, port } = messageData // TODO we could probably cache this in the module scope? const inProcessRunner = new InProcessRunner(