mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
log when a worker is removed from the pool
This commit is contained in:
parent
3542918941
commit
3da42df92c
1 changed files with 1 additions and 0 deletions
|
@ -17,6 +17,7 @@ class ASpellWorkerPool
|
|||
return null
|
||||
worker = new ASpellWorker(language, @options)
|
||||
worker.pipe.on 'exit', () =>
|
||||
logger.log process: worker.pipe.pid, lang: language, "removing aspell worker from pool"
|
||||
@cleanup()
|
||||
@PROCESS_POOL.push(worker)
|
||||
metrics.gauge 'aspellWorkerPool-size', @PROCESS_POOL.length
|
||||
|
|
Loading…
Reference in a new issue