mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-16 22:11:57 +00:00
start background flush after http server has started
This commit is contained in:
parent
2845b23b70
commit
ae3ebf2db6
1 changed files with 4 additions and 3 deletions
|
@ -143,11 +143,12 @@ host = Settings.internal.documentupdater.host or "localhost"
|
|||
if !module.parent # Called directly
|
||||
app.listen port, host, ->
|
||||
logger.info "Document-updater starting up, listening on #{host}:#{port}"
|
||||
if Settings.continuousBackgroundFlush
|
||||
logger.info "Starting continuous background flush"
|
||||
DeleteQueueManager.startBackgroundFlush()
|
||||
|
||||
module.exports = app
|
||||
|
||||
for signal in ['SIGINT', 'SIGHUP', 'SIGQUIT', 'SIGUSR1', 'SIGUSR2', 'SIGTERM', 'SIGABRT']
|
||||
process.on signal, shutdownCleanly(signal)
|
||||
|
||||
if Settings.continuousBackgroundFlush
|
||||
logger.info "Starting continuous background flush"
|
||||
DeleteQueueManager.startBackgroundFlush()
|
Loading…
Reference in a new issue