Skip to content

🎥 Make videos programmatically with React

`@remotion/lambda`: Validate concurrency only in launch function if no `rendererFunctionName` is passed

Jonny Burgerc877d4634e33
diff --git a/packages/lambda/src/functions/launch.ts b/packages/lambda/src/functions/launch.ts
index 6ddba39b98..95b3ad3c6c 100644
--- a/packages/lambda/src/functions/launch.ts
+++ b/packages/lambda/src/functions/launch.ts
@@ -154,7 +154,8 @@ const innerLaunchHandler = async <Provider extends CloudProvider>({
RenderInternals.validateConcurrency({
value: params.concurrencyPerLambda,
setting: 'concurrencyPerLambda',
- checkIfValidForCurrentMachine: true,
+ checkIfValidForCurrentMachine:
+ (params.rendererFunctionName ?? null) === null,
});
const realFrameRange = RenderInternals.getRealFrameRange(