Skip to content

Commit

Permalink
fix: worker-runner timout option (#1515)
Browse files Browse the repository at this point in the history
  • Loading branch information
moroine authored Jul 27, 2022
1 parent bcab0c1 commit 3437822
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 3437822

Please sign in to comment.