diff --git a/packages/nx/src/command-line/report/report.ts b/packages/nx/src/command-line/report/report.ts index 61ef530b1d815..e8eba85bde679 100644 --- a/packages/nx/src/command-line/report/report.ts +++ b/packages/nx/src/command-line/report/report.ts @@ -103,7 +103,9 @@ export async function reportHandler() { powerpackLicense.workspaceCount } workspace${ powerpackLicense.workspaceCount > 1 ? 's' : '' - } until ${new Date(powerpackLicense.expiresAt).toLocaleDateString()}` + } until ${new Date( + powerpackLicense.expiresAt * 1000 + ).toLocaleDateString()}` ); bodyLines.push(''); diff --git a/packages/nx/src/tasks-runner/task-orchestrator.ts b/packages/nx/src/tasks-runner/task-orchestrator.ts index f10700ac54079..6352d9c71b314 100644 --- a/packages/nx/src/tasks-runner/task-orchestrator.ts +++ b/packages/nx/src/tasks-runner/task-orchestrator.ts @@ -75,10 +75,11 @@ export class TaskOrchestrator { ) {} async run() { - // Init the ForkedProcessTaskRunner + // Init the ForkedProcessTaskRunner, TasksSchedule, and Cache await Promise.all([ this.forkedProcessTaskRunner.init(), this.tasksSchedule.init(), + 'init' in this.cache ? this.cache.init() : null, ]); // initial scheduling