From 335e68141cf260986f65c672b7d32a2289ad2d7a Mon Sep 17 00:00:00 2001 From: Matthieu Bergel Date: Wed, 22 May 2024 13:29:11 +0000 Subject: [PATCH] fix(baker): remove progress bar throttling --- baker/GrapherBaker.tsx | 1 + baker/SiteBaker.tsx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/baker/GrapherBaker.tsx b/baker/GrapherBaker.tsx index 8b1ace288ba..41cb8716e13 100644 --- a/baker/GrapherBaker.tsx +++ b/baker/GrapherBaker.tsx @@ -518,6 +518,7 @@ export const bakeAllChangedGrapherPagesVariablesPngSvgAndDeleteRemovedGraphers = { width: 20, total: chartsToBake.length + 1, + renderThrottle: 0, } ) diff --git a/baker/SiteBaker.tsx b/baker/SiteBaker.tsx index 386c407013b..283a5d15763 100644 --- a/baker/SiteBaker.tsx +++ b/baker/SiteBaker.tsx @@ -194,6 +194,7 @@ export class SiteBaker { "--- BakeAll [:bar] :current/:total :elapseds :name\n", { total: getProgressBarTotal(bakeSteps), + renderThrottle: 0, } ) this.explorerAdminServer = new ExplorerAdminServer(GIT_CMS_DIR) @@ -326,8 +327,6 @@ export class SiteBaker { keyBy(images, "filename") ) - // This step runs so quickly that the progress bar doesn't log, so we add a small delay - await new Promise((resolve) => setTimeout(resolve, 10)) this.progressBar.tick({ name: `✅ Prefetched ${Object.values(imageMetadataDictionary).length} images`, }) @@ -1057,6 +1056,7 @@ export class SiteBaker { "--- BakeAll [:bar] :current/:total :elapseds :name\n", { total: progressBarTotal, + renderThrottle: 0, } ) await this._bakeNonWordpressPages(knex)