Skip to content

🎥 Make videos programmatically with React

`@remotion/lambda`: Actually run the launch handler's cleanup tasks

parbhatkapila4a19f31e837f6
diff --git a/packages/lambda/src/functions/handlers/launch.ts b/packages/lambda/src/functions/handlers/launch.ts
index bfe38d6392..5f8e8e80a2 100644
--- a/packages/lambda/src/functions/handlers/launch.ts
+++ b/packages/lambda/src/functions/handlers/launch.ts
@@ -1095,7 +1095,7 @@ export const launchHandler = async ({
};
const runCleanupTasks = () => {
- const prom = Promise.all(cleanupTasks)
+ const prom = Promise.all(cleanupTasks.map((task) => task()))
.then(() => {
RenderInternals.Log.info(
{indent: false, logLevel: params.logLevel},