mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-29 04:42:18 +00:00
allow archiving to exit properly on hard timeout
This commit is contained in:
parent
9936710a1a
commit
c6e83c6cb8
1 changed files with 2 additions and 1 deletions
|
@ -37,10 +37,11 @@ shutDownTimer = setTimeout () ->
|
||||||
# start the shutdown on the next pack
|
# start the shutdown on the next pack
|
||||||
shutDownRequested = true
|
shutDownRequested = true
|
||||||
# do a hard shutdown after a further 5 minutes
|
# do a hard shutdown after a further 5 minutes
|
||||||
setTimeout () ->
|
hardTimeout = setTimeout () ->
|
||||||
logger.error "HARD TIMEOUT in pack archive worker"
|
logger.error "HARD TIMEOUT in pack archive worker"
|
||||||
process.exit()
|
process.exit()
|
||||||
, 5*60*1000
|
, 5*60*1000
|
||||||
|
hardTimeout.unref()
|
||||||
, TIMEOUT
|
, TIMEOUT
|
||||||
|
|
||||||
logger.log "checking for updates, limit=#{LIMIT}, delay=#{DOCUMENT_PACK_DELAY}, timeout=#{TIMEOUT}"
|
logger.log "checking for updates, limit=#{LIMIT}, delay=#{DOCUMENT_PACK_DELAY}, timeout=#{TIMEOUT}"
|
||||||
|
|
Loading…
Reference in a new issue