packages/docs/docs/lambda/faster-progress-polling.mdx
By default, each getRenderProgress() call invokes the render function, which reads the render progress from S3.
Set skipLambdaInvocation to true to read the progress directly from S3 instead. This reduces the latency and avoids a Lambda invocation for each progress poll. It does not make the render itself faster.
import {getRenderProgress, speculateFunctionName} from '@remotion/lambda/client';
const functionName = speculateFunctionName({
memorySizeInMb: 2048,
diskSizeInMb: 2048,
timeoutInSeconds: 120,
});
const progress = await getRenderProgress({
renderId: 'd7nlc2y',
bucketName: 'remotionlambda-useast1-abcdefgh',
functionName,
region: 'us-east-1',
skipLambdaInvocation: true,
});
deployFunction() follow this convention.getRenderProgress() must have s3:GetObject permission for the Remotion bucket. The policy returned by getUserPolicy() includes this permission.If either requirement is not fulfilled, leave skipLambdaInvocation unset.