Skip to content

Commit

Permalink
added control setting
Browse files Browse the repository at this point in the history
  • Loading branch information
inlife committed Sep 3, 2024
1 parent a24bdf4 commit ddd735e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/nexrender-core/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ const init = (settings) => {

// amount of seconds before job will be marked as "stuck"
maxUpdateTimeout: process.env.NEXRENDER_MAX_UPDATE_TIMEOUT || 60,
killAEFXOnRenderTimeout: process.env.NEXRENDER_KILL_AEFX_ON_RENDER_TIMEOUT || false,

__initialized: true,
}, settings, {
Expand Down
3 changes: 2 additions & 1 deletion packages/nexrender-core/src/tasks/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ Estimated date of change to the new behavior: 2023-06-01.\n`);
settings.trackSync('Job Render Failed', { job_id: job.uid, error: 'aerender_timeout' });
reject(new Error(`Maximum rendering time exceeded`));
crossPlatformKill(instance)
killProcessByName('AfterFX.com')
if (settings.killAEFXOnRenderTimeout)
killProcessByName('AfterFX.com')
},
timeout
);
Expand Down

0 comments on commit ddd735e

Please sign in to comment.