@remotion/lambda 4.1.0-alpha10 → 4.1.0-alpha11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/log.d.ts
CHANGED
|
@@ -2,24 +2,24 @@ export declare const Log: {
|
|
|
2
2
|
verbose: (message?: any, ...optionalParams: any[]) => void;
|
|
3
3
|
verboseAdvanced: (options: {
|
|
4
4
|
indent: boolean;
|
|
5
|
-
logLevel: "
|
|
5
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
6
6
|
} & {
|
|
7
7
|
tag?: string | undefined;
|
|
8
8
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
9
9
|
info: (message?: any, ...optionalParams: any[]) => void;
|
|
10
10
|
infoAdvanced: (options: {
|
|
11
11
|
indent: boolean;
|
|
12
|
-
logLevel: "
|
|
12
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
13
13
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
14
14
|
warn: (message?: any, ...optionalParams: any[]) => void;
|
|
15
15
|
warnAdvanced: (options: {
|
|
16
16
|
indent: boolean;
|
|
17
|
-
logLevel: "
|
|
17
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
18
18
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
19
19
|
error: (message?: any, ...optionalParams: any[]) => void;
|
|
20
20
|
errorAdvanced: (options: {
|
|
21
21
|
indent: boolean;
|
|
22
|
-
logLevel: "
|
|
22
|
+
logLevel: "verbose" | "info" | "warn" | "error";
|
|
23
23
|
} & {
|
|
24
24
|
tag?: string | undefined;
|
|
25
25
|
}, message?: any, ...optionalParams: any[]) => void;
|
|
@@ -79,7 +79,12 @@ const getAllFilesS3 = ({ bucket, expectedFiles, outdir, renderId, region, expect
|
|
|
79
79
|
console.log('Checking for finish... ', Object.keys(downloaded), expectedFiles + ' files expected');
|
|
80
80
|
if (areAllFilesDownloaded) {
|
|
81
81
|
console.log('All files are downloaded!');
|
|
82
|
-
resolve(
|
|
82
|
+
resolve(
|
|
83
|
+
// Need to use downloaded variable, not filesInBucket
|
|
84
|
+
// as it may be out of date
|
|
85
|
+
Object.keys(downloaded)
|
|
86
|
+
.sort()
|
|
87
|
+
.map((file) => getChunkDownloadOutputLocation({ outdir, file })));
|
|
83
88
|
}
|
|
84
89
|
};
|
|
85
90
|
console.log('Found ', filesInBucket);
|
|
@@ -108,7 +113,7 @@ const getAllFilesS3 = ({ bucket, expectedFiles, outdir, renderId, region, expect
|
|
|
108
113
|
region,
|
|
109
114
|
expectedBucketOwner,
|
|
110
115
|
});
|
|
111
|
-
|
|
116
|
+
renderer_1.RenderInternals.Log.info('Successfully downloaded', key);
|
|
112
117
|
downloadTimer.end();
|
|
113
118
|
downloaded[key] = true;
|
|
114
119
|
checkFinish();
|
|
@@ -47,6 +47,7 @@ const renderHandler = async (params, options, logs) => {
|
|
|
47
47
|
if (!params.frameRange) {
|
|
48
48
|
throw new Error('must pass framerange');
|
|
49
49
|
}
|
|
50
|
+
renderer_1.RenderInternals.Log.verbose(`Rendering frames ${params.frameRange[0]}-${params.frameRange[1]} in this Lambda function`);
|
|
50
51
|
const start = Date.now();
|
|
51
52
|
const chunkTimingData = {
|
|
52
53
|
timings: {},
|
|
@@ -242,12 +243,15 @@ const rendererHandler = async (params, options) => {
|
|
|
242
243
|
console.log({ err });
|
|
243
244
|
throw err;
|
|
244
245
|
}
|
|
246
|
+
const { message } = err;
|
|
245
247
|
// If this error is encountered, we can just retry as it
|
|
246
248
|
// is a very rare error to occur
|
|
247
|
-
const isRetryableError =
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
249
|
+
const isRetryableError = message.includes('FATAL:zygote_communication_linux.cc') ||
|
|
250
|
+
message.includes('error while loading shared libraries: libnss3.so') ||
|
|
251
|
+
message.includes('but the server sent no data') ||
|
|
252
|
+
message.includes('Compositor panicked') ||
|
|
253
|
+
(message.includes('Compositor exited') && !message.includes('SIGSEGV')) ||
|
|
254
|
+
message.includes('Timed out while setting up the headless browser');
|
|
251
255
|
const shouldNotRetry = err.name === 'CancelledError';
|
|
252
256
|
const isFatal = !isRetryableError;
|
|
253
257
|
const willRetry = isRetryableError && params.retriesLeft > 0 && !shouldNotRetry;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/lambda",
|
|
3
|
-
"version": "4.1.0-
|
|
3
|
+
"version": "4.1.0-alpha11",
|
|
4
4
|
"description": "Distributed renderer for Remotion based on AWS Lambda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"aws-policies": "^1.0.1",
|
|
27
27
|
"mime-types": "2.1.34",
|
|
28
28
|
"zod": "3.21.4",
|
|
29
|
-
"@remotion/
|
|
30
|
-
"@remotion/
|
|
31
|
-
"remotion": "4.1.0-
|
|
32
|
-
"@remotion/
|
|
29
|
+
"@remotion/bundler": "4.1.0-alpha11",
|
|
30
|
+
"@remotion/renderer": "4.1.0-alpha11",
|
|
31
|
+
"remotion": "4.1.0-alpha11",
|
|
32
|
+
"@remotion/cli": "4.1.0-alpha11"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@jonny/eslint-config": "3.0.266",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"typescript": "4.9.5",
|
|
45
45
|
"vitest": "0.31.1",
|
|
46
46
|
"zip-lib": "^0.7.2",
|
|
47
|
-
"@remotion/bundler": "4.1.0-
|
|
48
|
-
"@remotion/compositor-linux-arm64-gnu": "4.1.0-
|
|
47
|
+
"@remotion/bundler": "4.1.0-alpha11",
|
|
48
|
+
"@remotion/compositor-linux-arm64-gnu": "4.1.0-alpha11"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@remotion/bundler": "4.1.0-
|
|
51
|
+
"@remotion/bundler": "4.1.0-alpha11"
|
|
52
52
|
},
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
package/remotionlambda-arm64.zip
CHANGED
|
Binary file
|