Skip to content

🎥 Make videos programmatically with React

progress reporting for chunks

Jonny Burger9e84a80543c6
diff --git a/packages/lambda/src/cli/commands/render/progress.ts b/packages/lambda/src/cli/commands/render/progress.ts
index 713a0af9d1..4ec77b2ba5 100644
--- a/packages/lambda/src/cli/commands/render/progress.ts
+++ b/packages/lambda/src/cli/commands/render/progress.ts
@@ -43,8 +43,10 @@ const makeInvokeProgress = (
),
CliInternals.makeProgressBar(progress),
progress === 1
- ? CliInternals.chalk.gray('100%')
- : `${Math.round(progress * 100)}%`,
+ ? CliInternals.chalk.gray(`${lambdasInvoked}/${totalLambdas}`)
+ : totalLambdas === null
+ ? null
+ : `${lambdasInvoked}/${totalLambdas}`,
retriesInfo.length > 0 ? `(+${retriesInfo.length} retries)` : [],
].join(' ');
};
@@ -114,7 +116,7 @@ const makeEncodingProgress = ({
}
return [
- `${timeToEncode === null ? 'Combining' : 'Combined'} videos`.padEnd(
+ `${timeToEncode === null ? 'Combining' : 'Combined'} chunks`.padEnd(
CliInternals.LABEL_WIDTH,
' ',
),