Commit dc5f52b
committed
Prevent permanent waits from destroyed workers
Prevent permanent waits, by ensuring that we continue creating
resources if we need them
* There are many errors due to pools being configured with min: 0
but then running out of workers while there is still work to do
* This results in missed work, infinite loops and timeouts
* A solution is to ensure that if we still have work todo
that we make sure we still have some workers to do them
See:
* brianc/node-pg-pool#48
* loopbackio/loopback-connector-postgresql#231
* #175 (Seems related)1 parent 7865e04 commit dc5f52b
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
308 | 315 | | |
309 | 316 | | |
310 | 317 | | |
| |||
0 commit comments