mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #91 from sharelatex/bg-increase-wordcount-timeout
increase timeout on wordcount
This commit is contained in:
commit
24abcd5024
2 changed files with 2 additions and 2 deletions
|
@ -281,7 +281,7 @@ module.exports = CompileManager =
|
||||||
file_path = "$COMPILE_DIR/" + file_name
|
file_path = "$COMPILE_DIR/" + file_name
|
||||||
command = [ "texcount", '-nocol', '-inc', file_path, "-out=" + file_path + ".wc"]
|
command = [ "texcount", '-nocol', '-inc', file_path, "-out=" + file_path + ".wc"]
|
||||||
directory = getCompileDir(project_id, user_id)
|
directory = getCompileDir(project_id, user_id)
|
||||||
timeout = 10 * 1000
|
timeout = 60 * 1000 # increased to allow for large projects
|
||||||
compileName = getCompileName(project_id, user_id)
|
compileName = getCompileName(project_id, user_id)
|
||||||
|
|
||||||
CommandRunner.run compileName, command, directory, image, timeout, {}, (error) ->
|
CommandRunner.run compileName, command, directory, image, timeout, {}, (error) ->
|
||||||
|
|
|
@ -298,7 +298,7 @@ describe "CompileManager", ->
|
||||||
@callback = sinon.stub()
|
@callback = sinon.stub()
|
||||||
|
|
||||||
@project_id = "project-id-123"
|
@project_id = "project-id-123"
|
||||||
@timeout = 10 * 1000
|
@timeout = 60 * 1000
|
||||||
@file_name = "main.tex"
|
@file_name = "main.tex"
|
||||||
@Settings.path.compilesDir = "/local/compile/directory"
|
@Settings.path.compilesDir = "/local/compile/directory"
|
||||||
@image = "example.com/image"
|
@image = "example.com/image"
|
||||||
|
|
Loading…
Reference in a new issue