Skip to content

🎥 Make videos programmatically with React

overall progress

Jonny Burger53edd3b7b9c4
diff --git a/packages/lambda/src/cli/commands/render/progress.ts b/packages/lambda/src/cli/commands/render/progress.ts
index 52de4bed76..faaa08c364 100644
--- a/packages/lambda/src/cli/commands/render/progress.ts
+++ b/packages/lambda/src/cli/commands/render/progress.ts
@@ -17,7 +17,7 @@ const makeInvokeProgress = (overall: RenderProgress) => {
};
const {lambdasInvoked, totalLambdas} = invokeProgress;
const progress = totalLambdas === null ? 0 : lambdasInvoked / totalLambdas;
- return [
+ const topLine = [
`${progress === 0 ? 'Invoked' : 'Invoking'} lambdas`.padEnd(
CliInternals.LABEL_WIDTH,
),
@@ -27,10 +27,14 @@ const makeInvokeProgress = (overall: RenderProgress) => {
: totalLambdas === null
? null
: `${lambdasInvoked}/${totalLambdas}`,
- overall.retriesInfo.length > 0
- ? `(+${overall.retriesInfo.length} retries)`
- : [],
].join(' ');
+
+ return [
+ topLine,
+ overall.retriesInfo.length > 0
+ ? `! Retrying chunk${overall.retriesInfo.length === 1 ? '' : 's'} ${overall.retriesInfo.map((r) => r.chunk).join(', ')}`
+ : null,
+ ].filter(NoReactInternals.truthy);
};
const makeRenderProgress = (progress: RenderProgress) => {
@@ -180,7 +184,7 @@ export const makeProgressString = ({
}) => {
return [
makeTopRow(overall),
- makeInvokeProgress(overall),
+ ...makeInvokeProgress(overall),
...makeRenderProgress(overall),
makeCombinationProgress(overall),
downloadInfo ? makeDownloadProgress(downloadInfo) : null,
diff --git a/packages/lambda/src/functions/helpers/stream-renderer.ts b/packages/lambda/src/functions/helpers/stream-renderer.ts
index 5805ace5a3..ecc8045f2d 100644
--- a/packages/lambda/src/functions/helpers/stream-renderer.ts
+++ b/packages/lambda/src/functions/helpers/stream-renderer.ts
@@ -75,6 +75,10 @@ const streamRenderer = ({
}
if (message.type === 'chunk-complete') {
+ RenderInternals.Log.verbose(
+ {indent: false, logLevel},
+ `Rendered chunk ${payload.chunk}`,
+ );
overallProgress.addChunkCompleted(
payload.chunk,
message.payload.start,