mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
increase lock timeouts for archiving
This commit is contained in:
parent
b4ffa7d57e
commit
18f06a3daf
1 changed files with 5 additions and 0 deletions
|
@ -7,6 +7,11 @@ _ = require "underscore"
|
|||
async = require "async"
|
||||
settings = require("settings-sharelatex")
|
||||
|
||||
# increase lock timeouts because archiving can be slow
|
||||
LockManager.LOCK_TEST_INTERVAL = 500 # 500ms between each test of the lock
|
||||
LockManager.MAX_LOCK_WAIT_TIME = 30000 # 30s maximum time to spend trying to get the lock
|
||||
LockManager.LOCK_TTL = 30 # seconds
|
||||
|
||||
module.exports = DocArchiveManager =
|
||||
|
||||
archiveAllDocsChanges: (project_id, callback = (error, docs) ->) ->
|
||||
|
|
Loading…
Reference in a new issue