diff --git a/packages/nx/src/tasks-runner/tasks-schedule.ts b/packages/nx/src/tasks-runner/tasks-schedule.ts index 556787df0354b..5039985a1cb86 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 + ); } }