mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
increased timeout to 4 mins....
This commit is contained in:
parent
b85017759e
commit
960b46dda0
1 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,7 @@ logger = require("logger-sharelatex")
|
||||||
exec = require('child_process').exec
|
exec = require('child_process').exec
|
||||||
approvedFormats = ["png"]
|
approvedFormats = ["png"]
|
||||||
|
|
||||||
twoMinsInMs = 2 * (60 * 1000)
|
fourMinsInMs = 4 * (60 * 1000)
|
||||||
|
|
||||||
module.exports =
|
module.exports =
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ module.exports =
|
||||||
return callback err
|
return callback err
|
||||||
args = "nice convert -flatten -density 300 #{sourcePath} #{destPath}"
|
args = "nice convert -flatten -density 300 #{sourcePath} #{destPath}"
|
||||||
opts =
|
opts =
|
||||||
timeout: twoMinsInMs
|
timeout: fourMinsInMs
|
||||||
exec args, opts, (err, stdout, stderr)->
|
exec args, opts, (err, stdout, stderr)->
|
||||||
timer.done()
|
timer.done()
|
||||||
if err?
|
if err?
|
||||||
|
@ -38,7 +38,7 @@ module.exports =
|
||||||
height: 300
|
height: 300
|
||||||
args = "nice convert -flatten -background white -resize 260x -density 300 #{sourcePath} #{destPath}"
|
args = "nice convert -flatten -background white -resize 260x -density 300 #{sourcePath} #{destPath}"
|
||||||
opts =
|
opts =
|
||||||
timeout: twoMinsInMs
|
timeout: fourMinsInMs
|
||||||
exec args, opts,(err, stdout, stderr)->
|
exec args, opts,(err, stdout, stderr)->
|
||||||
if err?
|
if err?
|
||||||
logger.err err:err, stderr:stderr, sourcePath:sourcePath, "something went wrong converting file to preview"
|
logger.err err:err, stderr:stderr, sourcePath:sourcePath, "something went wrong converting file to preview"
|
||||||
|
@ -57,7 +57,7 @@ module.exports =
|
||||||
height: 849
|
height: 849
|
||||||
args = "nice convert -flatten -background white -resize 548x -density 300 #{sourcePath} #{destPath}"
|
args = "nice convert -flatten -background white -resize 548x -density 300 #{sourcePath} #{destPath}"
|
||||||
opts =
|
opts =
|
||||||
timeout: twoMinsInMs
|
timeout: fourMinsInMs
|
||||||
exec args, opts,(err, stdout, stderr)->
|
exec args, opts,(err, stdout, stderr)->
|
||||||
if err?
|
if err?
|
||||||
logger.err err:err, stderr:stderr, sourcePath:sourcePath, "something went wrong converting file to preview"
|
logger.err err:err, stderr:stderr, sourcePath:sourcePath, "something went wrong converting file to preview"
|
||||||
|
|
Loading…
Reference in a new issue