Skip to content

Commit

Permalink
Properly mop up Python handler runners.
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-marsh committed Apr 8, 2020
1 parent c531811 commit 49e5121
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/lambda/handler-runner/python-runner/PythonRunner.js
Expand Up @@ -50,15 +50,12 @@ export default class PythonRunner {
this.handlerProcess.stdout.readline = readline.createInterface({
input: this.handlerProcess.stdout,
})

process.on('exit', () => {
this.handlerProcess.kill()
})
}

// no-op
// () => void
cleanup() {}
cleanup() {
this.handlerProcess.kill()
}

_parsePayload(value) {
let payload
Expand Down

0 comments on commit 49e5121

Please sign in to comment.