@nexrender/core 1.49.1 → 1.49.2
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/package.json +2 -2
- package/src/tasks/render.js +14 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexrender/core",
|
|
3
|
-
"version": "1.49.
|
|
3
|
+
"version": "1.49.2",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"author": "Inlife",
|
|
6
6
|
"homepage": "https://www.nexrender.com",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "c09f9f1a34418dd6574e958a6256633cb3ed614d"
|
|
42
42
|
}
|
package/src/tasks/render.js
CHANGED
|
@@ -187,18 +187,7 @@ Estimated date of change to the new behavior: 2023-06-01.\n`);
|
|
|
187
187
|
|
|
188
188
|
let timeoutID = 0;
|
|
189
189
|
let updateTimeout = 0;
|
|
190
|
-
|
|
191
|
-
const updateTimeoutInterval = setInterval(() => {
|
|
192
|
-
if (projectStart === null) return;
|
|
193
|
-
|
|
194
|
-
const now = Date.now()
|
|
195
|
-
if (now - updateTimeout > settings.maxUpdateTimeout * 1000) {
|
|
196
|
-
clearInterval(updateTimeoutInterval);
|
|
197
|
-
clearTimeout(timeoutID);
|
|
198
|
-
settings.trackSync('Job Render Failed', { job_id: job.uid, error: 'aerender_no_update' });
|
|
199
|
-
reject(new Error(`No update from aerender for ${settings.maxUpdateTimeout} seconds`));
|
|
200
|
-
}
|
|
201
|
-
}, 5000)
|
|
190
|
+
let updateTimeoutInterval = null;
|
|
202
191
|
|
|
203
192
|
if (settings.debug) {
|
|
204
193
|
settings.logger.log(`[${job.uid}] spawning aerender process: ${settings.binary} ${params.join(' ')}`);
|
|
@@ -231,6 +220,19 @@ Estimated date of change to the new behavior: 2023-06-01.\n`);
|
|
|
231
220
|
updateTimeout = Date.now()
|
|
232
221
|
});
|
|
233
222
|
|
|
223
|
+
updateTimeoutInterval = setInterval(() => {
|
|
224
|
+
if (projectStart === null) return;
|
|
225
|
+
|
|
226
|
+
const now = Date.now()
|
|
227
|
+
if (now - updateTimeout > settings.maxUpdateTimeout * 1000) {
|
|
228
|
+
clearInterval(updateTimeoutInterval);
|
|
229
|
+
clearTimeout(timeoutID);
|
|
230
|
+
settings.trackSync('Job Render Failed', { job_id: job.uid, error: 'aerender_no_update' });
|
|
231
|
+
reject(new Error(`No update from aerender for ${settings.maxUpdateTimeout} seconds`));
|
|
232
|
+
instance.kill('SIGINT');
|
|
233
|
+
}
|
|
234
|
+
}, 5000)
|
|
235
|
+
|
|
234
236
|
if (settings.maxRenderTimeout && settings.maxRenderTimeout > 0) {
|
|
235
237
|
const timeout = 1000 * settings.maxRenderTimeout;
|
|
236
238
|
timeoutID = setTimeout(
|