mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
move start time inside each clsi request as they are run in series now
This commit is contained in:
parent
5a7b8f4887
commit
4cb78a5797
1 changed files with 2 additions and 1 deletions
|
@ -89,9 +89,9 @@ module.exports = ClsiManager =
|
|||
callback(null, response?.compile?.status, outputFiles, clsiServerId)
|
||||
|
||||
_makeRequest: (project_id, opts, callback)->
|
||||
startTime = new Date()
|
||||
async.series {
|
||||
currentBackend: (cb)->
|
||||
startTime = new Date()
|
||||
ClsiCookieManager.getCookieJar project_id, (err, jar)->
|
||||
if err?
|
||||
logger.err err:err, "error getting cookie jar for clsi request"
|
||||
|
@ -109,6 +109,7 @@ module.exports = ClsiManager =
|
|||
callback err, response, body #return as soon as the standard compile has returned
|
||||
cb(err, {response:response, body:body, finishTime:new Date() - startTime })
|
||||
newBackend: (cb)->
|
||||
startTime = new Date()
|
||||
ClsiManager._makeNewBackendRequest project_id, opts, (err, response, body)->
|
||||
cb(err, {response:response, body:body, finishTime:new Date() - startTime})
|
||||
}, (err, results)->
|
||||
|
|
Loading…
Reference in a new issue