From d489de59e0535571c2cb3b0363cd5b4fc846842b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leosvel=20P=C3=A9rez=20Espinosa?= Date: Fri, 14 Jul 2023 16:41:07 +0100 Subject: [PATCH] fix(core): do not duplicate output of tasks executed in batch mode (#18084) --- .../forked-process-task-runner.ts | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/packages/nx/src/tasks-runner/forked-process-task-runner.ts b/packages/nx/src/tasks-runner/forked-process-task-runner.ts index a74cb15d28180..ab6006eed1ceb 100644 --- a/packages/nx/src/tasks-runner/forked-process-task-runner.ts +++ b/packages/nx/src/tasks-runner/forked-process-task-runner.ts @@ -78,30 +78,9 @@ export class ForkedProcessTaskRunner { } }); - const printedTasks = new Set(); p.on('message', (message: BatchMessage) => { switch (message.type) { - case BatchMessageType.CompleteTask: { - this.options.lifeCycle.printTaskTerminalOutput( - batchTaskGraph.tasks[message.task], - message.result.success ? 'success' : 'failure', - message.result.terminalOutput - ); - printedTasks.add(message.task); - - break; - } case BatchMessageType.CompleteBatchExecution: { - Object.entries(message.results).forEach(([taskName, result]) => { - if (!printedTasks.has(taskName)) { - this.options.lifeCycle.printTaskTerminalOutput( - batchTaskGraph.tasks[taskName], - result.success ? 'success' : 'failure', - result.terminalOutput - ); - } - }); - res(message.results); break; }