A task crash should be visible in the task log
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user