mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-26 18:51:50 +02:00
allow archiving to exit properly on hard timeout
This commit is contained in:
@@ -37,10 +37,11 @@ shutDownTimer = setTimeout () ->
|
||||
# start the shutdown on the next pack
|
||||
shutDownRequested = true
|
||||
# do a hard shutdown after a further 5 minutes
|
||||
setTimeout () ->
|
||||
hardTimeout = setTimeout () ->
|
||||
logger.error "HARD TIMEOUT in pack archive worker"
|
||||
process.exit()
|
||||
, 5*60*1000
|
||||
hardTimeout.unref()
|
||||
, TIMEOUT
|
||||
|
||||
logger.log "checking for updates, limit=#{LIMIT}, delay=#{DOCUMENT_PACK_DELAY}, timeout=#{TIMEOUT}"
|
||||
|
||||
Reference in New Issue
Block a user