A task crash should be visible in the task log

This commit is contained in:
Johannes Zellner
2020-10-27 09:15:36 +01:00
parent 12b101e04f
commit 2d897d8537

View File

@@ -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) {