This commit is contained in:
spiduler
2020-10-23 15:58:04 +09:00
parent a4b98a6298
commit 495e4bf0c4

View File

@@ -47,6 +47,13 @@ class SeleniumBrowser {
}) })
this.pool.use(driver => { this.pool.use(driver => {
logger.debug({
spare: this.pool.spareResourceCapacity,
size: this.pool.size,
available: this.pool.available,
borrowed: this.pool.borrowed,
pending: this.pool.pending
}, 'Pool info')
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
if (this.pool.available == 0) this.config.browserFullCount++ if (this.pool.available == 0) this.config.browserFullCount++
if (this.config.browserFullCount > 100) { if (this.config.browserFullCount > 100) {