mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
added timeout and logging for tpdsworker queing via http
This commit is contained in:
parent
b83fe4dcf9
commit
84bf0dd9a3
1 changed files with 3 additions and 0 deletions
|
@ -26,10 +26,13 @@ module.exports = TpdsUpdateSender =
|
|||
method:method
|
||||
job:job
|
||||
method:"post"
|
||||
timeout: (5 * 1000)
|
||||
request opts, (err)->
|
||||
if err?
|
||||
logger.err err:err, "error queuing something in the tpdsworker"
|
||||
callback(err)
|
||||
else
|
||||
logger.log group:group, "successfully queued up job for tpdsworker"
|
||||
callback()
|
||||
|
||||
_addEntity: (options, callback = (err)->)->
|
||||
|
|
Loading…
Reference in a new issue