This commit is contained in:
spiduler
2020-10-23 01:16:12 +09:00
parent c513c125b5
commit 287500df41
3 changed files with 11 additions and 7 deletions

View File

@@ -22,8 +22,16 @@ class SeleniumBrowser {
driver.quit()
}
}, {
max: 10, min: 1
max: 10, min: 1, evictionRunIntervalMillis: 1000 * 60
});
this.pool.on('factoryCreateError', function (err) {
logger.error(err.message, 'pool error')
})
this.pool.on('factoryDestroyError', function (err) {
logger.error(err.message, 'pool error')
})
}
getDriver() {