Skip to content

Commit

Permalink
Increase shell script timeout to 5 minutes
Browse files Browse the repository at this point in the history
This seems to be needed for issue #23  since it takes 3 minutes to compile on 
latex.aslushnikov.com.
  • Loading branch information
aslushnikov committed Mar 4, 2017
1 parent ea07766 commit c52f1c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion process.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function RequestProcessor(options, callback) {
}

this.execShellScript = function(cmd, callback) {
var timeout = 1000*60*2;// no more than 2 minutes evaluation
var timeout = 1000*60*5;// no more than 5 minutes evaluation
exec(cmd, {timeout: timeout}, function(error, stdout, stderr) {
if (error) {
console.error("Script '" + cmd + "' exec error: " + stderr);
Expand Down

0 comments on commit c52f1c8

Please sign in to comment.