Skip to content

🎥 Make videos programmatically with React

don't factor in cleanup

Jonny Burger1120ab4161d1
diff --git a/packages/lambda/src/functions/helpers/get-overall-progress.ts b/packages/lambda/src/functions/helpers/get-overall-progress.ts
index c9eb4b8e3a..0c1ca15304 100644
--- a/packages/lambda/src/functions/helpers/get-overall-progress.ts
+++ b/packages/lambda/src/functions/helpers/get-overall-progress.ts
@@ -1,7 +1,6 @@
-type Factors = 'invoking' | 'rendering' | 'frames' | 'encoding' | 'cleanup';
+type Factors = 'invoking' | 'rendering' | 'frames' | 'encoding';
const weights: {[key in Factors]: number} = {
- cleanup: 0.1,
encoding: 0.225,
rendering: 0.225,
frames: 0.225,
@@ -9,20 +8,17 @@ const weights: {[key in Factors]: number} = {
};
export const getOverallProgress = ({
- cleanup,
encoding,
rendering,
invoking,
frames,
}: {
- cleanup: number;
encoding: number;
rendering: number;
invoking: number;
frames: number;
}) => {
return (
- cleanup * weights.cleanup +
encoding * weights.encoding +
rendering * weights.rendering +
invoking * weights.invoking +
diff --git a/packages/lambda/src/functions/helpers/get-progress.ts b/packages/lambda/src/functions/helpers/get-progress.ts
index 04f53b78e7..369644acac 100644
--- a/packages/lambda/src/functions/helpers/get-progress.ts
+++ b/packages/lambda/src/functions/helpers/get-progress.ts
@@ -221,7 +221,6 @@ export const getProgress = async ({
})
: null,
overallProgress: getOverallProgress({
- cleanup: cleanup ? cleanup.filesDeleted / cleanup.minFilesToDelete : 0,
encoding:
renderMetadata && frameCount
? overallProgress.framesEncoded ?? 0 / frameCount