Skip to content

Commit

Permalink
fix(baker): remove progress bar throttling
Browse files Browse the repository at this point in the history
  • Loading branch information
mlbrgl committed May 22, 2024
1 parent eb2966e commit 335e681
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions baker/GrapherBaker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ export const bakeAllChangedGrapherPagesVariablesPngSvgAndDeleteRemovedGraphers =
{
width: 20,
total: chartsToBake.length + 1,
renderThrottle: 0,
}
)

Expand Down
4 changes: 2 additions & 2 deletions baker/SiteBaker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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`,
})
Expand Down Expand Up @@ -1057,6 +1056,7 @@ export class SiteBaker {
"--- BakeAll [:bar] :current/:total :elapseds :name\n",
{
total: progressBarTotal,
renderThrottle: 0,
}
)
await this._bakeNonWordpressPages(knex)
Expand Down

0 comments on commit 335e681

Please sign in to comment.