From 5141c9f9d60bb4bfc79b48c868cffdb9848614b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leosvel=20P=C3=A9rez=20Espinosa?= Date: Mon, 15 May 2023 18:49:38 +0100 Subject: [PATCH] fix(core): add missing await when processing task for batches (#17027) --- packages/nx/src/tasks-runner/tasks-schedule.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/nx/src/tasks-runner/tasks-schedule.ts b/packages/nx/src/tasks-runner/tasks-schedule.ts index 556787df03..5039985a1c 100644 --- a/packages/nx/src/tasks-runner/tasks-schedule.ts +++ b/packages/nx/src/tasks-runner/tasks-schedule.ts @@ -196,7 +196,12 @@ export class TasksSchedule { for (const dep of this.reverseTaskDeps[task.id]) { const depTask = this.taskGraph.tasks[dep]; - this.processTaskForBatches(batches, depTask, rootExecutorName, false); + await this.processTaskForBatches( + batches, + depTask, + rootExecutorName, + false + ); } }