From 2d897d85373ebbf132f57526da46f0e94e15a7e7 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Tue, 27 Oct 2020 09:15:36 +0100 Subject: [PATCH] A task crash should be visible in the task log --- src/taskworker.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/taskworker.js b/src/taskworker.js index fbff783c9..5aeed0ec2 100755 --- a/src/taskworker.js +++ b/src/taskworker.js @@ -67,6 +67,9 @@ async.series([ process.on('SIGTERM', () => process.exit(0)); // sent as timeout notification + // ensure we log task crashes with the task logs + process.on('uncaughtException', function (e) { debug(e); process.exit(1); }); + debug(`Starting task ${taskId}. Logs are at ${logFile}`); tasks.get(taskId, function (error, task) {